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