Enum bio::utils::Strand [−][src]
pub enum Strand { Forward, Reverse, Unknown, }
Strand information.
Variants
Forward
Reverse
Unknown
Methods
impl Strand
[src]
impl Strand
pub fn from_char(strand_char: &char) -> Result<Strand, StrandError>
[src]
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)
pub fn is_unknown(&self) -> bool
[src]
pub fn is_unknown(&self) -> bool
Trait Implementations
impl Debug for Strand
[src]
impl Debug for Strand
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Strand
[src]
impl Clone for Strand
fn clone(&self) -> Strand
[src]
fn clone(&self) -> Strand
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Strand
[src]
impl Copy for Strand
impl PartialEq for Strand
[src]
impl PartialEq for Strand