[−][src]Enum bio_types::strand::Strand
Strand information.
Variants
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.
fn from_str(s: &str) -> Result<Self, Self::Err>[src]
impl Neg 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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,