[][src]Enum bio_types::strand::Strand

pub enum Strand {
    Forward,
    Reverse,
    Unknown,
}

Strand information.

Variants

Forward
Reverse
Unknown

Implementations

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 Clone for Strand[src]

impl Copy for Strand[src]

impl Debug for Strand[src]

impl Display for Strand[src]

impl From<NoStrand> for Strand[src]

impl From<Option<ReqStrand>> for Strand[src]

impl From<ReqStrand> for Strand[src]

impl From<Strand> for Option<ReqStrand>[src]

impl FromStr for Strand[src]

type Err = StrandError

The associated error which can be returned from parsing.

impl Neg for Strand[src]

type Output = Strand

The resulting type after applying the - operator.

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.

impl Same for Strand[src]

Auto Trait Implementations

impl RefUnwindSafe for Strand

impl Send for Strand

impl Sync for Strand

impl Unpin for Strand

impl UnwindSafe for Strand

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.