pub struct ByteMatrix { /* private fields */ }Expand description
Arbitrary bytes scoring matrix.
Implementations§
Source§impl ByteMatrix
impl ByteMatrix
Sourcepub const fn new_simple(match_score: i8, mismatch_score: i8) -> Self
pub const fn new_simple(match_score: i8, mismatch_score: i8) -> Self
Create a simple matrix with a certain match and mismatch score.
Trait Implementations§
Source§impl Clone for ByteMatrix
impl Clone for ByteMatrix
Source§fn clone(&self) -> ByteMatrix
fn clone(&self) -> ByteMatrix
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 Debug for ByteMatrix
impl Debug for ByteMatrix
Source§impl Matrix for ByteMatrix
impl Matrix for ByteMatrix
Source§const NULL: u8 = 0u8
const NULL: u8 = 0u8
May lead to inaccurate results with x drop alignment, if the block reaches the ends of the strings.
Avoid using ByteMatrix with x drop alignment.
Source§unsafe fn get_scores(&self, c: u8, v: HalfSimd, _right: bool) -> Simd
unsafe fn get_scores(&self, c: u8, v: HalfSimd, _right: bool) -> Simd
Get the scores for a certain byte and a certain SIMD vector of bytes.
Source§fn convert_char(c: u8) -> u8
fn convert_char(c: u8) -> u8
Convert a byte to a better storage format that makes retrieving scores
easier.
Source§impl PartialEq for ByteMatrix
impl PartialEq for ByteMatrix
impl StructuralPartialEq for ByteMatrix
Auto Trait Implementations§
impl Freeze for ByteMatrix
impl RefUnwindSafe for ByteMatrix
impl Send for ByteMatrix
impl Sync for ByteMatrix
impl Unpin for ByteMatrix
impl UnwindSafe for ByteMatrix
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