pub struct EnzymeCatalogue {
pub source: CatalogueSource,
pub enzymes: Vec<Enzyme>,
pub unsupported: Vec<UnsupportedEnzyme>,
}Expand description
The enzymes available to scans and digests.
Fields§
§source: CatalogueSource§enzymes: Vec<Enzyme>§unsupported: Vec<UnsupportedEnzyme>Implementations§
Source§impl EnzymeCatalogue
impl EnzymeCatalogue
pub fn builtin() -> Self
Sourcepub fn from_emboss(
e_text: &str,
r_text: &str,
version: &str,
sha256: Option<String>,
) -> Result<Self, RestrictionError>
pub fn from_emboss( e_text: &str, r_text: &str, version: &str, sha256: Option<String>, ) -> Result<Self, RestrictionError>
Parse REBASE EMBOSS files (emboss_e.NNN, emboss_r.NNN). Only commercially
available enzymes (at least one supplier) are included; two-sided cutters, unknown
cut positions and invalid patterns are listed as unsupported. Names and patterns
are leaked once so enzymes keep the 'static API (load a catalogue once per process).
Trait Implementations§
Source§impl Clone for EnzymeCatalogue
impl Clone for EnzymeCatalogue
Source§fn clone(&self) -> EnzymeCatalogue
fn clone(&self) -> EnzymeCatalogue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnzymeCatalogue
impl Debug for EnzymeCatalogue
impl Eq for EnzymeCatalogue
Source§impl PartialEq for EnzymeCatalogue
impl PartialEq for EnzymeCatalogue
Source§impl Serialize for EnzymeCatalogue
impl Serialize for EnzymeCatalogue
impl StructuralPartialEq for EnzymeCatalogue
Auto Trait Implementations§
impl Freeze for EnzymeCatalogue
impl RefUnwindSafe for EnzymeCatalogue
impl Send for EnzymeCatalogue
impl Sync for EnzymeCatalogue
impl Unpin for EnzymeCatalogue
impl UnsafeUnpin for EnzymeCatalogue
impl UnwindSafe for EnzymeCatalogue
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