pub struct Gene {
pub chain: ChainType,
pub kind: GeneType,
pub number: Option<usize>,
pub family: Vec<(Option<usize>, String)>,
}Expand description
A germline gene name, broken up in its constituent parts.
Fields§
§chain: ChainTypeThe chain of this gene (heavy/kappa etc)
kind: GeneTypeThe kind of gene (V/J/C)
number: Option<usize>If present the additional number IGHV (I)
family: Vec<(Option<usize>, String)>The family indicators IGHV -1D
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Gene
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Gene
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<'de> Deserialize<'de> for Gene
impl<'de> Deserialize<'de> for Gene
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FancyDisplay for Gene
impl FancyDisplay for Gene
Source§fn to_fancy_string(&self) -> String
fn to_fancy_string(&self) -> String
Equivalent of
.to_string() but then fancier!Source§impl Ord for Gene
impl Ord for Gene
Source§impl PartialOrd for Gene
impl PartialOrd for Gene
impl Eq for Gene
impl StructuralPartialEq for Gene
Auto Trait Implementations§
impl Freeze for Gene
impl RefUnwindSafe for Gene
impl Send for Gene
impl Sync for Gene
impl Unpin for Gene
impl UnwindSafe for Gene
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HighestOf<T> for T
impl<T> HighestOf<T> for T
Source§type HighestLevel = T
type HighestLevel = T
This is the highest complexity level out of Self and the type parameter
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more