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