pub trait LayoutWord: Copy + ZerocopyWord {
type Index: LayoutIndex;
// Required method
fn get(self) -> Self::Index;
}Expand description
A native-host or little-endian word carrying a typed dense LayoutIndex.
This merges what oxgraph-csr and oxgraph-hyper-bcsr previously
duplicated as CsrWord/BcsrWord. The associated LayoutWord::Index
recovers the logical index value from either a native word (identity) or a
little-endian storage word (byte-order conversion), so a single IdSlice
drives both build-path and view-path iteration.
§Performance
LayoutWord::get is expected to be O(1).
Required Associated Types§
Sourcetype Index: LayoutIndex
type Index: LayoutIndex
Logical dense index recovered from this word.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".