pub struct DnaSeq(/* private fields */);Expand description
Validated, canonical uppercase IUPAC DNA.
Implementations§
Source§impl DnaSeq
impl DnaSeq
Sourcepub fn new(sequence: impl AsRef<str>) -> Result<Self, DomainError>
pub fn new(sequence: impl AsRef<str>) -> Result<Self, DomainError>
Validate and canonicalize an IUPAC DNA sequence.
Sourcepub fn aligned_complement_3to5(&self) -> String
pub fn aligned_complement_3to5(&self) -> String
Complement aligned to the forward reference, read left-to-right 3′→5′. This does not reverse the coordinate frame or return a 5′→3′ reverse complement.
Trait Implementations§
impl Eq for DnaSeq
impl StructuralPartialEq for DnaSeq
Auto Trait Implementations§
impl Freeze for DnaSeq
impl RefUnwindSafe for DnaSeq
impl Send for DnaSeq
impl Sync for DnaSeq
impl Unpin for DnaSeq
impl UnsafeUnpin for DnaSeq
impl UnwindSafe for DnaSeq
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