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