Struct ScaleDegree
pub struct ScaleDegree(/* private fields */);Implementations§
§impl ScaleDegree
impl ScaleDegree
pub fn new(value: u8) -> Result<ScaleDegree, ScaleError>
pub const fn value(self) -> u8
Trait Implementations§
§impl Clone for ScaleDegree
impl Clone for ScaleDegree
§fn clone(&self) -> ScaleDegree
fn clone(&self) -> ScaleDegree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ScaleDegree
impl Debug for ScaleDegree
§impl Display for ScaleDegree
impl Display for ScaleDegree
§impl FromStr for ScaleDegree
impl FromStr for ScaleDegree
§type Err = ScaleError
type Err = ScaleError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<ScaleDegree, <ScaleDegree as FromStr>::Err>
fn from_str(value: &str) -> Result<ScaleDegree, <ScaleDegree as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for ScaleDegree
impl Hash for ScaleDegree
§impl Ord for ScaleDegree
impl Ord for ScaleDegree
§impl PartialEq for ScaleDegree
impl PartialEq for ScaleDegree
§impl PartialOrd for ScaleDegree
impl PartialOrd for ScaleDegree
§impl TryFrom<u8> for ScaleDegree
impl TryFrom<u8> for ScaleDegree
§type Error = ScaleError
type Error = ScaleError
The type returned in the event of a conversion error.
§fn try_from(
value: u8,
) -> Result<ScaleDegree, <ScaleDegree as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<ScaleDegree, <ScaleDegree as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for ScaleDegree
impl Eq for ScaleDegree
impl StructuralPartialEq for ScaleDegree
Auto Trait Implementations§
impl Freeze for ScaleDegree
impl RefUnwindSafe for ScaleDegree
impl Send for ScaleDegree
impl Sync for ScaleDegree
impl Unpin for ScaleDegree
impl UnsafeUnpin for ScaleDegree
impl UnwindSafe for ScaleDegree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more