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