Struct OrganSystemRef
pub struct OrganSystemRef(/* private fields */);Expand description
A simple organ-system reference label.
Implementations§
§impl OrganSystemRef
impl OrganSystemRef
pub fn new(value: impl AsRef<str>) -> Result<OrganSystemRef, OrganNameError>
pub fn new(value: impl AsRef<str>) -> Result<OrganSystemRef, OrganNameError>
Creates an organ-system reference from non-empty text.
§Errors
Returns OrganNameError::Empty when the trimmed label is empty.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the reference and returns the owned string.
Trait Implementations§
§impl AsRef<str> for OrganSystemRef
impl AsRef<str> for OrganSystemRef
§impl Clone for OrganSystemRef
impl Clone for OrganSystemRef
§fn clone(&self) -> OrganSystemRef
fn clone(&self) -> OrganSystemRef
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 OrganSystemRef
impl Debug for OrganSystemRef
§impl Display for OrganSystemRef
impl Display for OrganSystemRef
§impl FromStr for OrganSystemRef
impl FromStr for OrganSystemRef
§type Err = OrganNameError
type Err = OrganNameError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<OrganSystemRef, <OrganSystemRef as FromStr>::Err>
fn from_str( value: &str, ) -> Result<OrganSystemRef, <OrganSystemRef as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for OrganSystemRef
impl Hash for OrganSystemRef
§impl Ord for OrganSystemRef
impl Ord for OrganSystemRef
§impl PartialEq for OrganSystemRef
impl PartialEq for OrganSystemRef
§impl PartialOrd for OrganSystemRef
impl PartialOrd for OrganSystemRef
impl Eq for OrganSystemRef
impl StructuralPartialEq for OrganSystemRef
Auto Trait Implementations§
impl Freeze for OrganSystemRef
impl RefUnwindSafe for OrganSystemRef
impl Send for OrganSystemRef
impl Sync for OrganSystemRef
impl Unpin for OrganSystemRef
impl UnsafeUnpin for OrganSystemRef
impl UnwindSafe for OrganSystemRef
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