pub enum Strand {
Forward,
Reverse,
Unknown,
}
Expand description
Strand information.
Variants§
Implementations§
source§impl 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 Freeze for Strand
impl RefUnwindSafe for Strand
impl Send for Strand
impl Sync for Strand
impl Unpin for Strand
impl UnwindSafe for Strand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)