pub enum Side {
Specified {
a: bool,
b: bool,
},
EitherGlobal,
}Expand description
The alignment specification for a single side
Variants§
Specified
Align with the specified rules for the two peptides
EitherGlobal
Align either A or B globally, meaning that either one of the peptides has to end before the other, the other peptide could then have unmatched sequence at the end.
Implementations§
Source§impl Side
impl Side
Sourcepub const fn global_a(self) -> bool
pub const fn global_a(self) -> bool
Check if A is global, if this is Self::EitherGlobal it returns false.
Sourcepub const fn global_b(self) -> bool
pub const fn global_b(self) -> bool
Check if B is global, if this is Self::EitherGlobal it returns false.
Sourcepub const fn global(self) -> bool
pub const fn global(self) -> bool
Check if any of the peptides is global, or if this is Self::EitherGlobal.
Sourcepub const fn description(self) -> &'static str
pub const fn description(self) -> &'static str
Get a text description of the alignment type for this side.
Sourcepub const fn symbol_left(self) -> &'static str
pub const fn symbol_left(self) -> &'static str
Get a symbolic representation of the alignment type for this side.
Sourcepub const fn symbol_right(self) -> &'static str
pub const fn symbol_right(self) -> &'static str
Get a symbolic representation of the alignment type for this side.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Side
impl<'de> Deserialize<'de> for Side
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 Ord for Side
impl Ord for Side
Source§impl PartialOrd for Side
impl PartialOrd for Side
impl Copy for Side
impl Eq for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnwindSafe for Side
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