Struct StaffLineCount
pub struct StaffLineCount(/* private fields */);Implementations§
§impl StaffLineCount
impl StaffLineCount
pub fn new(value: u8) -> Result<StaffLineCount, NotationError>
pub const fn value(self) -> u8
Trait Implementations§
§impl Clone for StaffLineCount
impl Clone for StaffLineCount
§fn clone(&self) -> StaffLineCount
fn clone(&self) -> StaffLineCount
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 StaffLineCount
impl Debug for StaffLineCount
§impl Display for StaffLineCount
impl Display for StaffLineCount
§impl FromStr for StaffLineCount
impl FromStr for StaffLineCount
§type Err = NotationError
type Err = NotationError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<StaffLineCount, <StaffLineCount as FromStr>::Err>
fn from_str( value: &str, ) -> Result<StaffLineCount, <StaffLineCount as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for StaffLineCount
impl Hash for StaffLineCount
§impl Ord for StaffLineCount
impl Ord for StaffLineCount
§impl PartialEq for StaffLineCount
impl PartialEq for StaffLineCount
§impl PartialOrd for StaffLineCount
impl PartialOrd for StaffLineCount
§impl TryFrom<u8> for StaffLineCount
impl TryFrom<u8> for StaffLineCount
§type Error = NotationError
type Error = NotationError
The type returned in the event of a conversion error.
§fn try_from(
value: u8,
) -> Result<StaffLineCount, <StaffLineCount as TryFrom<u8>>::Error>
fn try_from( value: u8, ) -> Result<StaffLineCount, <StaffLineCount as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for StaffLineCount
impl Eq for StaffLineCount
impl StructuralPartialEq for StaffLineCount
Auto Trait Implementations§
impl Freeze for StaffLineCount
impl RefUnwindSafe for StaffLineCount
impl Send for StaffLineCount
impl Sync for StaffLineCount
impl Unpin for StaffLineCount
impl UnsafeUnpin for StaffLineCount
impl UnwindSafe for StaffLineCount
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