Skip to main content

ExpertRows

Trait ExpertRows 

Source
pub trait ExpertRows {
    // Required method
    fn row(&self, bank: usize, layer: u32, row: u32) -> Option<&[u8]>;
}
Expand description

The host-side expert rows a CopyPlan reads from.

Layer-local by construction, matching CopyPlan::src_rows: row r of layer L, not a flat index. That is what lets each layer’s bank live in its own allocation, which in turn is what lets crate::residency give different layers different host residency classes.

Required Methods§

Source

fn row(&self, bank: usize, layer: u32, row: u32) -> Option<&[u8]>

The bytes of one expert row, or None if the bank has no such row. Returning a slice of the wrong length is refused by the caller rather than trusted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§