pub struct TissueName(/* private fields */);Expand description
A non-empty tissue name.
Implementations§
Source§impl TissueName
impl TissueName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, TissueNameError>
pub fn new(value: impl AsRef<str>) -> Result<Self, TissueNameError>
Creates a tissue name from non-empty text.
§Errors
Returns TissueNameError::Empty when the trimmed name is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the name and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for TissueName
impl AsRef<str> for TissueName
Source§impl Clone for TissueName
impl Clone for TissueName
Source§fn clone(&self) -> TissueName
fn clone(&self) -> TissueName
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 TissueName
impl Debug for TissueName
Source§impl Display for TissueName
impl Display for TissueName
Source§impl FromStr for TissueName
impl FromStr for TissueName
Source§impl Hash for TissueName
impl Hash for TissueName
Source§impl Ord for TissueName
impl Ord for TissueName
Source§fn cmp(&self, other: &TissueName) -> Ordering
fn cmp(&self, other: &TissueName) -> 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 TissueName
impl PartialEq for TissueName
Source§impl PartialOrd for TissueName
impl PartialOrd for TissueName
impl Eq for TissueName
impl StructuralPartialEq for TissueName
Auto Trait Implementations§
impl Freeze for TissueName
impl RefUnwindSafe for TissueName
impl Send for TissueName
impl Sync for TissueName
impl Unpin for TissueName
impl UnsafeUnpin for TissueName
impl UnwindSafe for TissueName
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