[−][src]Enum bio_types::strand::Strand
Strand information.
Variants
ForwardReverseUnknownMethods
impl Strand[src]
pub fn from_char(strand_char: &char) -> Result<Strand, StrandError>[src]
Returns a Strand enum representing the given char.
The mapping is as follows:
* '+', 'f', or 'F' becomes Strand::Forward
* '-', 'r', or 'R' becomes Strand::Reverse
* '.', '?' becomes Strand::Unknown
* Any other inputs will return an Err(StrandError::InvalidChar)
pub fn strand_symbol(&self) -> &str[src]
Symbol denoting the strand. By convention, in BED and GFF
files, the forward strand is +, the reverse strand is -,
and unknown or unspecified strands are ..
pub fn is_unknown(&self) -> bool[src]
Trait Implementations
impl Same for Strand[src]
impl Copy for Strand[src]
impl PartialEq<Strand> for Strand[src]
fn eq(&self, other: &Strand) -> bool[src]
Returns true if both are Forward or both are Reverse, otherwise returns false.
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Clone for Strand[src]
fn clone(&self) -> Strand[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl From<ReqStrand> for Strand[src]
impl From<Option<ReqStrand>> for Strand[src]
impl From<NoStrand> for Strand[src]
impl From<Strand> for Option<ReqStrand>[src]
impl Debug for Strand[src]
impl Display for Strand[src]
impl Neg for Strand[src]
impl FromStr for Strand[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,