pub struct GeneId(/* private fields */);Expand description
A stable gene identifier string.
Implementations§
Source§impl GeneId
impl GeneId
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GeneValueError>
pub fn new(value: impl AsRef<str>) -> Result<Self, GeneValueError>
Creates a gene identifier from non-empty text.
§Errors
Returns GeneValueError::Empty when the trimmed identifier is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the identifier and returns the owned string.
Trait Implementations§
Source§impl Ord for GeneId
impl Ord for GeneId
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 GeneId
impl PartialOrd for GeneId
impl Eq for GeneId
impl StructuralPartialEq for GeneId
Auto Trait Implementations§
impl Freeze for GeneId
impl RefUnwindSafe for GeneId
impl Send for GeneId
impl Sync for GeneId
impl Unpin for GeneId
impl UnsafeUnpin for GeneId
impl UnwindSafe for GeneId
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