pub struct RestrictionEnzyme {
pub name: String,
pub cut_seq: Vec<NucleotideGeneral>,
pub cut_after: u8,
}Fields§
§name: String§cut_seq: Vec<NucleotideGeneral>From the 5’ end.
cut_after: u8Index to cut after, from the 5’ end. For blunt ends, this will be halfway through the seq (rounded down)
Implementations§
Source§impl RestrictionEnzyme
impl RestrictionEnzyme
pub fn new(name: &str, cut_seq: Vec<NucleotideGeneral>, cut_after: u8) -> Self
pub fn makes_blunt_ends(&self) -> bool
Sourcepub fn cut_depiction(&self) -> String
pub fn cut_depiction(&self) -> String
A depiction of where to cut.
Sourcepub fn overhang_top_left(&self, seq_segment: &[Nucleotide]) -> Vec<Nucleotide>
pub fn overhang_top_left(&self, seq_segment: &[Nucleotide]) -> Vec<Nucleotide>
Find the overhanging NTs 5’ of a sequence’s top strand.
seq_segment must be the same size as, and aligned with the cut sequence.
pub fn overhang_top_right(&self, seq_segment: &[Nucleotide]) -> Vec<Nucleotide>
pub fn overhang_bottom_left( &self, seq_segment: &[Nucleotide], ) -> Vec<Nucleotide>
pub fn overhang_bottom_right( &self, seq_segment: &[Nucleotide], ) -> Vec<Nucleotide>
Trait Implementations§
Source§impl Clone for RestrictionEnzyme
impl Clone for RestrictionEnzyme
Source§fn clone(&self) -> RestrictionEnzyme
fn clone(&self) -> RestrictionEnzyme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Hash for RestrictionEnzyme
impl Hash for RestrictionEnzyme
Source§impl PartialEq for RestrictionEnzyme
impl PartialEq for RestrictionEnzyme
impl Eq for RestrictionEnzyme
Auto Trait Implementations§
impl Freeze for RestrictionEnzyme
impl RefUnwindSafe for RestrictionEnzyme
impl Send for RestrictionEnzyme
impl Sync for RestrictionEnzyme
impl Unpin for RestrictionEnzyme
impl UnwindSafe for RestrictionEnzyme
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