Struct block_aligner::scores::ByteMatrix
source · #[repr(C)]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 copy 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<ByteMatrix> for ByteMatrix
impl PartialEq<ByteMatrix> for ByteMatrix
source§fn eq(&self, other: &ByteMatrix) -> bool
fn eq(&self, other: &ByteMatrix) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ByteMatrix
Auto Trait Implementations§
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