pub trait VectorFieldGuardLayout: Send + Sync {
// Required methods
fn prefix(
&self,
control: &StorageReadControl,
) -> VersionResult<BudgetedVec<u8>>;
fn reference(
&self,
key: &[u8],
control: &StorageReadControl,
) -> VersionResult<Option<VectorFieldGuard>>;
}Expand description
Decode only this provider’s internal vector-field guard namespace. A lifetime key returns None; a reference key supplies its exact immutable value and paired lifetime. Malformed keys reject, and neighboring metadata is outside prefix.
Required Methods§
fn prefix(&self, control: &StorageReadControl) -> VersionResult<BudgetedVec<u8>>
fn reference( &self, key: &[u8], control: &StorageReadControl, ) -> VersionResult<Option<VectorFieldGuard>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".