pub struct OrganSystemRef(/* private fields */);Expand description
A simple organ-system reference label.
Implementations§
Source§impl OrganSystemRef
impl OrganSystemRef
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, OrganNameError>
pub fn new(value: impl AsRef<str>) -> Result<Self, OrganNameError>
Creates an organ-system reference from non-empty text.
§Errors
Returns OrganNameError::Empty when the trimmed label is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the reference and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for OrganSystemRef
impl AsRef<str> for OrganSystemRef
Source§impl Clone for OrganSystemRef
impl Clone for OrganSystemRef
Source§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 moreSource§impl Debug for OrganSystemRef
impl Debug for OrganSystemRef
Source§impl Display for OrganSystemRef
impl Display for OrganSystemRef
Source§impl FromStr for OrganSystemRef
impl FromStr for OrganSystemRef
Source§impl Hash for OrganSystemRef
impl Hash for OrganSystemRef
Source§impl Ord for OrganSystemRef
impl Ord for OrganSystemRef
Source§fn cmp(&self, other: &OrganSystemRef) -> Ordering
fn cmp(&self, other: &OrganSystemRef) -> 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
Source§impl PartialEq for OrganSystemRef
impl PartialEq for OrganSystemRef
Source§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