Struct lib::alignment_lib::WavefrontGrid
source · [−]pub struct WavefrontGrid { /* private fields */ }Expand description
Used to store and access wavefronts efficiently. T is the type used to store the number of chars matched. U is the type used for diagonals.
Implementations
sourceimpl WavefrontGrid
impl WavefrontGrid
sourcepub fn get(
&self,
layer: AlignmentLayer,
score: usize,
diag: i32
) -> Option<(i32, AlignmentLayer)>
pub fn get(
&self,
layer: AlignmentLayer,
score: usize,
diag: i32
) -> Option<(i32, AlignmentLayer)>
Get a value
pub fn set(
&mut self,
layer: AlignmentLayer,
score: usize,
diag: i32,
value: Option<(i32, AlignmentLayer)>
)
pub fn get_diag_range(&self, score: usize) -> Option<&(i32, i32)>
pub fn increment(&mut self, score: usize, diag: i32)
Trait Implementations
sourceimpl Debug for WavefrontGrid
impl Debug for WavefrontGrid
sourceimpl PartialEq<WavefrontGrid> for WavefrontGrid
impl PartialEq<WavefrontGrid> for WavefrontGrid
sourcefn eq(&self, other: &WavefrontGrid) -> bool
fn eq(&self, other: &WavefrontGrid) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &WavefrontGrid) -> bool
fn ne(&self, other: &WavefrontGrid) -> bool
This method tests for !=.
impl Eq for WavefrontGrid
impl StructuralEq for WavefrontGrid
impl StructuralPartialEq for WavefrontGrid
Auto Trait Implementations
impl RefUnwindSafe for WavefrontGrid
impl Send for WavefrontGrid
impl Sync for WavefrontGrid
impl Unpin for WavefrontGrid
impl UnwindSafe for WavefrontGrid
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more