Enum consprob_trained::Strand
source · [−]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)
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more