pub struct GeneName(/* private fields */);Expand description
A non-empty descriptive gene name.
Implementations§
Source§impl GeneName
impl GeneName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GeneValueError>
pub fn new(value: impl AsRef<str>) -> Result<Self, GeneValueError>
Creates a gene name from non-empty text.
§Errors
Returns GeneValueError::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 Ord for GeneName
impl Ord for GeneName
1.21.0 (const: unstable) · 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 PartialOrd for GeneName
impl PartialOrd for GeneName
impl Eq for GeneName
impl StructuralPartialEq for GeneName
Auto Trait Implementations§
impl Freeze for GeneName
impl RefUnwindSafe for GeneName
impl Send for GeneName
impl Sync for GeneName
impl Unpin for GeneName
impl UnsafeUnpin for GeneName
impl UnwindSafe for GeneName
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