pub enum Strand {
Forward,
Reverse,
Unknown,
}Expand description
Strand information.
Variants
Forward
Reverse
Unknown
Implementations
sourceimpl Strand
impl Strand
sourcepub fn from_char(strand_char: &char) -> Result<Strand, StrandError>
pub fn from_char(strand_char: &char) -> Result<Strand, StrandError>
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)
sourcepub fn strand_symbol(&self) -> &str
pub fn strand_symbol(&self) -> &str
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
Trait Implementations
impl Copy for Strand
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more