pub struct Germline {
pub species: Species,
pub name: Gene,
pub alleles: Vec<(usize, AnnotatedSequence)>,
}Expand description
Intermediate representation for germline
Fields§
§species: SpeciesThe species for this germline
name: GeneThe name for the germline
alleles: Vec<(usize, AnnotatedSequence)>All alleles
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Germline
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Germline
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 CVData for Germline
impl CVData for Germline
Source§impl CVStructure<Germline> for HashMap<Species, Germlines>
impl CVStructure<Germline> for HashMap<Species, Germlines>
Source§type IterIndexed<'a> = Box<dyn Iterator<Item = (<HashMap<Species, Germlines> as CVStructure<Germline>>::Index, Arc<Germline>)> + 'a>
type IterIndexed<'a> = Box<dyn Iterator<Item = (<HashMap<Species, Germlines> as CVStructure<Germline>>::Index, Arc<Germline>)> + 'a>
The iterator to use when the index and data items are requested
Source§type IterData<'a> = Box<dyn Iterator<Item = Arc<Germline>> + 'a>
type IterData<'a> = Box<dyn Iterator<Item = Arc<Germline>> + 'a>
The iterator to use when only the data items are requested
Source§fn iter_indexed(&self) -> Self::IterIndexed<'_>
fn iter_indexed(&self) -> Self::IterIndexed<'_>
Iterate over all data items and return both the index and the data item
Source§impl<'de> Deserialize<'de> for Germline
impl<'de> Deserialize<'de> for Germline
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<'a> IntoIterator for &'a Germline
impl<'a> IntoIterator for &'a Germline
Source§impl<'a> IntoParallelIterator for &'a Germline
Available on crate feature rayon only.
impl<'a> IntoParallelIterator for &'a Germline
Available on crate feature
rayon only.Source§type Iter = Iter<'a, (usize, AnnotatedSequence)>
type Iter = Iter<'a, (usize, AnnotatedSequence)>
The parallel iterator type that will be created.
Source§type Item = &'a (usize, AnnotatedSequence)
type Item = &'a (usize, AnnotatedSequence)
The type of item that the parallel iterator will produce.
Source§fn into_par_iter(self) -> Self::Iter
fn into_par_iter(self) -> Self::Iter
Converts
self into a parallel iterator. Read moreAuto Trait Implementations§
impl Freeze for Germline
impl !RefUnwindSafe for Germline
impl Send for Germline
impl Sync for Germline
impl Unpin for Germline
impl !UnwindSafe for Germline
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