Struct TissueName
pub struct TissueName(/* private fields */);Expand description
A non-empty tissue name.
Implementations§
§impl TissueName
impl TissueName
pub fn new(value: impl AsRef<str>) -> Result<TissueName, TissueNameError>
pub fn new(value: impl AsRef<str>) -> Result<TissueName, TissueNameError>
Creates a tissue name from non-empty text.
§Errors
Returns TissueNameError::Empty when the trimmed name is empty.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the name and returns the owned string.
Trait Implementations§
§impl AsRef<str> for TissueName
impl AsRef<str> for TissueName
§impl Clone for TissueName
impl Clone for TissueName
§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 more§impl Debug for TissueName
impl Debug for TissueName
§impl Display for TissueName
impl Display for TissueName
§impl FromStr for TissueName
impl FromStr for TissueName
§type Err = TissueNameError
type Err = TissueNameError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<TissueName, <TissueName as FromStr>::Err>
fn from_str(value: &str) -> Result<TissueName, <TissueName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for TissueName
impl Hash for TissueName
§impl Ord for TissueName
impl Ord for TissueName
§impl PartialEq for TissueName
impl PartialEq for TissueName
§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