pub struct ScannerBuilder { /* private fields */ }Expand description
A builder type to parameterize a Scanner.
Implementations§
Source§impl ScannerBuilder
impl ScannerBuilder
Sourcepub fn scan<S: AsRef<str> + Clone>(&self, sequence: S) -> Scanner<S> ⓘ
pub fn scan<S: AsRef<str> + Clone>(&self, sequence: S) -> Scanner<S> ⓘ
Scan the provided sequence for CRISPR regions iteratively.
The sequence can be provided as any string view that also implements
Clone. This allows several smart pointers to be passed (&str,
Rc<str>, Arc<str>, etc.). The actual sequence object however
will be cloned into the result Crispr, so make sure it implements
a cheap Clone, and avoid passing a String.
Sourcepub fn min_repeat_count(&mut self, min_repeat_count: usize) -> &mut Self
pub fn min_repeat_count(&mut self, min_repeat_count: usize) -> &mut Self
Set the minimum repeat number for CRISPR detection.
Sourcepub fn min_repeat_length(&mut self, min_repeat_length: usize) -> &mut Self
pub fn min_repeat_length(&mut self, min_repeat_length: usize) -> &mut Self
Set the minimum length for each CRISPR repeat.
Sourcepub fn max_repeat_length(&mut self, max_repeat_length: usize) -> &mut Self
pub fn max_repeat_length(&mut self, max_repeat_length: usize) -> &mut Self
Set the maximum length for each CRISPR repeat.
Sourcepub fn min_spacer_length(&mut self, min_spacer_length: usize) -> &mut Self
pub fn min_spacer_length(&mut self, min_spacer_length: usize) -> &mut Self
Set the minimum length for each CRISPR spacer.
Sourcepub fn max_spacer_length(&mut self, max_spacer_length: usize) -> &mut Self
pub fn max_spacer_length(&mut self, max_spacer_length: usize) -> &mut Self
Set the maximum length for each CRISPR spacer.
Trait Implementations§
Source§impl Clone for ScannerBuilder
impl Clone for ScannerBuilder
Source§fn clone(&self) -> ScannerBuilder
fn clone(&self) -> ScannerBuilder
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 moreAuto Trait Implementations§
impl Freeze for ScannerBuilder
impl RefUnwindSafe for ScannerBuilder
impl Send for ScannerBuilder
impl Sync for ScannerBuilder
impl Unpin for ScannerBuilder
impl UnsafeUnpin for ScannerBuilder
impl UnwindSafe for ScannerBuilder
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