#[non_exhaustive]pub enum Layout {
Gathered,
Precomputed,
}Expand description
The kernel data layout for the substitution scores, reported by
Database::layout. Like the backend and score width, the layout is
a performance choice only — it never changes results (see DETERMINISM.md).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gathered
General layout: a per-column byte-shuffle gather of substitution scores from a per-letter query profile. The standard Rognes inner loop; works for any database.
Precomputed
Small-fixed-database layout: a precomputed query-letter × database-column score table, so
each cell’s substitution vector is a direct load with no gather. Chosen automatically when
the table is small enough to stay cache-resident (see Database::builder).
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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