pub struct Sequence {
pub name: String,
pub details: Option<String>,
pub length: usize,
pub digital_bytes: Vec<u8>,
pub utf8_bytes: Vec<u8>,
}Expand description
This holds the both the “digital” data and string data of a biological sequence.
Fields§
§name: StringThe name of the sequence
details: Option<String>The sequence details. If the sequence comes from a fasta, this is the information following the sequence name in the header
length: usizeThe length of the sequence
digital_bytes: Vec<u8>The “digital” data of the sequence. These are the string bytes, but mapped to [0u8..25u8]
utf8_bytes: Vec<u8>The string data of the sequence. These are the UTF8 bytes that make up the sequence in the “normal” alphabet
Implementations§
Trait Implementations§
impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
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