pub struct EaselSequence {
pub c_sq: *mut ESL_SQ,
}
Fields§
§c_sq: *mut ESL_SQ
Implementations§
Source§impl EaselSequence
impl EaselSequence
pub fn new(alphabet: Alphabet) -> Self
Sourcepub fn replace_sequence(&mut self, seq: &[u8]) -> Result<(), &'static str>
pub fn replace_sequence(&mut self, seq: &[u8]) -> Result<(), &'static str>
Replace (or initialise) the sequence data in this object with the given sequence. This method is a simplification of the sqascii_ReadSequence() C function in easel, in esl_sqio_ascii.c.
The input sequence is assumed to be in the same alphabet as the one used to instantiate this struct. It is not NULL terminated.
The seq given here is converted into a newly allocated dsq, so does not need to live after this function returns.
Trait Implementations§
Source§impl Debug for EaselSequence
impl Debug for EaselSequence
Auto Trait Implementations§
impl Freeze for EaselSequence
impl RefUnwindSafe for EaselSequence
impl !Send for EaselSequence
impl !Sync for EaselSequence
impl Unpin for EaselSequence
impl UnwindSafe for EaselSequence
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