pub struct GeneSymbol(/* private fields */);Expand description
A non-empty gene symbol that preserves caller casing.
Implementations§
Source§impl GeneSymbol
impl GeneSymbol
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GeneValueError>
pub fn new(value: impl AsRef<str>) -> Result<Self, GeneValueError>
Creates a gene symbol from non-empty text.
§Errors
Returns GeneValueError::Empty when the trimmed symbol is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the symbol and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for GeneSymbol
impl AsRef<str> for GeneSymbol
Source§impl Clone for GeneSymbol
impl Clone for GeneSymbol
Source§fn clone(&self) -> GeneSymbol
fn clone(&self) -> GeneSymbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneSymbol
impl Debug for GeneSymbol
Source§impl Display for GeneSymbol
impl Display for GeneSymbol
Source§impl FromStr for GeneSymbol
impl FromStr for GeneSymbol
Source§impl Hash for GeneSymbol
impl Hash for GeneSymbol
Source§impl Ord for GeneSymbol
impl Ord for GeneSymbol
Source§fn cmp(&self, other: &GeneSymbol) -> Ordering
fn cmp(&self, other: &GeneSymbol) -> Ordering
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 PartialEq for GeneSymbol
impl PartialEq for GeneSymbol
Source§fn eq(&self, other: &GeneSymbol) -> bool
fn eq(&self, other: &GeneSymbol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GeneSymbol
impl PartialOrd for GeneSymbol
impl Eq for GeneSymbol
impl StructuralPartialEq for GeneSymbol
Auto Trait Implementations§
impl Freeze for GeneSymbol
impl RefUnwindSafe for GeneSymbol
impl Send for GeneSymbol
impl Sync for GeneSymbol
impl Unpin for GeneSymbol
impl UnsafeUnpin for GeneSymbol
impl UnwindSafe for GeneSymbol
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