pub struct ScaleToneCount(/* private fields */);Implementations§
Source§impl ScaleToneCount
impl ScaleToneCount
pub fn new(value: u8) -> Result<ScaleToneCount, ScaleError>
pub const fn value(self) -> u8
Trait Implementations§
Source§impl Clone for ScaleToneCount
impl Clone for ScaleToneCount
Source§fn clone(&self) -> ScaleToneCount
fn clone(&self) -> ScaleToneCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScaleToneCount
impl Debug for ScaleToneCount
Source§impl Display for ScaleToneCount
impl Display for ScaleToneCount
Source§impl FromStr for ScaleToneCount
impl FromStr for ScaleToneCount
Source§type Err = ScaleError
type Err = ScaleError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ScaleToneCount, <ScaleToneCount as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ScaleToneCount, <ScaleToneCount as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ScaleToneCount
impl Hash for ScaleToneCount
Source§impl Ord for ScaleToneCount
impl Ord for ScaleToneCount
Source§fn cmp(&self, other: &ScaleToneCount) -> Ordering
fn cmp(&self, other: &ScaleToneCount) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScaleToneCount
impl PartialEq for ScaleToneCount
Source§fn eq(&self, other: &ScaleToneCount) -> bool
fn eq(&self, other: &ScaleToneCount) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScaleToneCount
impl PartialOrd for ScaleToneCount
Source§impl TryFrom<u8> for ScaleToneCount
impl TryFrom<u8> for ScaleToneCount
Source§type Error = ScaleError
type Error = ScaleError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u8,
) -> Result<ScaleToneCount, <ScaleToneCount as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<ScaleToneCount, <ScaleToneCount as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for ScaleToneCount
impl Eq for ScaleToneCount
impl StructuralPartialEq for ScaleToneCount
Auto Trait Implementations§
impl Freeze for ScaleToneCount
impl RefUnwindSafe for ScaleToneCount
impl Send for ScaleToneCount
impl Sync for ScaleToneCount
impl Unpin for ScaleToneCount
impl UnsafeUnpin for ScaleToneCount
impl UnwindSafe for ScaleToneCount
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