pub enum AllelePhase {
Trans,
Uncertain,
}Expand description
Phase relationship between two established alleles.
§Examples
use tinyhgvs::{AllelePhase, VariantDescription, parse_hgvs};
let variant = parse_hgvs("NC_000001.11:g.123G>A(;)345del").unwrap();
match variant.description {
VariantDescription::NucleotideAllele(allele) => {
assert_eq!(allele.phase, Some(AllelePhase::Uncertain));
}
_ => unreachable!("expected nucleotide allele"),
}Variants§
Trait Implementations§
Source§impl Clone for AllelePhase
impl Clone for AllelePhase
Source§fn clone(&self) -> AllelePhase
fn clone(&self) -> AllelePhase
Returns a duplicate of the value. Read more
1.0.0 · 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 AllelePhase
impl Debug for AllelePhase
Source§impl PartialEq for AllelePhase
impl PartialEq for AllelePhase
impl Copy for AllelePhase
impl Eq for AllelePhase
impl StructuralPartialEq for AllelePhase
Auto Trait Implementations§
impl Freeze for AllelePhase
impl RefUnwindSafe for AllelePhase
impl Send for AllelePhase
impl Sync for AllelePhase
impl Unpin for AllelePhase
impl UnsafeUnpin for AllelePhase
impl UnwindSafe for AllelePhase
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