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