pub struct AnnotatedSequence {
pub sequence: Peptidoform<UnAmbiguous>,
pub regions: Vec<(Region, usize)>,
pub annotations: Vec<(Annotation, usize)>,
}Expand description
Intermediate representation for annotated sequence
Fields§
§sequence: Peptidoform<UnAmbiguous>The sequence
regions: Vec<(Region, usize)>The different regions in the sequence, defined by their name and length
annotations: Vec<(Annotation, usize)>0 based locations of single amino acid annotations, overlapping with the regions defined above
Implementations§
Source§impl AnnotatedSequence
impl AnnotatedSequence
Sourcepub fn new(
sequence: Peptidoform<UnAmbiguous>,
regions: Vec<(Region, usize)>,
conserved: Vec<(Annotation, usize)>,
) -> Self
pub fn new( sequence: Peptidoform<UnAmbiguous>, regions: Vec<(Region, usize)>, conserved: Vec<(Annotation, usize)>, ) -> Self
Create a new annotated sequence
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for AnnotatedSequence
impl<'__de, __Context> BorrowDecode<'__de, __Context> for AnnotatedSequence
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 Clone for AnnotatedSequence
impl Clone for AnnotatedSequence
Source§fn clone(&self) -> AnnotatedSequence
fn clone(&self) -> AnnotatedSequence
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 AnnotatedSequence
impl Debug for AnnotatedSequence
Source§impl<__Context> Decode<__Context> for AnnotatedSequence
impl<__Context> Decode<__Context> for AnnotatedSequence
Source§impl<'de> Deserialize<'de> for AnnotatedSequence
impl<'de> Deserialize<'de> for AnnotatedSequence
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 Encode for AnnotatedSequence
impl Encode for AnnotatedSequence
Auto Trait Implementations§
impl Freeze for AnnotatedSequence
impl !RefUnwindSafe for AnnotatedSequence
impl Send for AnnotatedSequence
impl Sync for AnnotatedSequence
impl Unpin for AnnotatedSequence
impl !UnwindSafe for AnnotatedSequence
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