pub enum Mamba3Cache {
DoubleSsd(Mamba3DoubleSsdCache),
SingleSsd(Mamba3SingleSsdCache),
}Expand description
A pathway-tagged bundle of per-block cache, so a single dispatch entry can accept / return either cache family.
The cache selection infers whether Double-SSD or Single-SSD is used.
If none is specified, this defaults to Self::SingleSsd.
See also crate::mamba3::ssd_path::Mamba3SsdPath.
Variants§
DoubleSsd(Mamba3DoubleSsdCache)
Caches for double-ssd pathway.
SingleSsd(Mamba3SingleSsdCache)
Caches for single-ssd pathway.
Implementations§
Source§impl Mamba3Cache
impl Mamba3Cache
Sourcepub fn double_ssd(self) -> Option<Mamba3DoubleSsdCache>
pub fn double_ssd(self) -> Option<Mamba3DoubleSsdCache>
Unwrap to the double-SSD cache, or None if this is the single-SSD variant.
Sourcepub fn single_ssd(self) -> Option<Mamba3SingleSsdCache>
pub fn single_ssd(self) -> Option<Mamba3SingleSsdCache>
Unwrap to the single-SSD cache, or None if this is the double-SSD variant.
Trait Implementations§
Source§impl Debug for Mamba3Cache
impl Debug for Mamba3Cache
Source§impl From<Mamba3DoubleSsdCache> for Mamba3Cache
impl From<Mamba3DoubleSsdCache> for Mamba3Cache
Source§fn from(cache: Mamba3DoubleSsdCache) -> Self
fn from(cache: Mamba3DoubleSsdCache) -> Self
Converts to this type from the input type.
Source§impl From<Mamba3SingleSsdCache> for Mamba3Cache
impl From<Mamba3SingleSsdCache> for Mamba3Cache
Source§fn from(cache: Mamba3SingleSsdCache) -> Self
fn from(cache: Mamba3SingleSsdCache) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Mamba3Cache
impl RefUnwindSafe for Mamba3Cache
impl Send for Mamba3Cache
impl Sync for Mamba3Cache
impl Unpin for Mamba3Cache
impl UnsafeUnpin for Mamba3Cache
impl UnwindSafe for Mamba3Cache
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