pub trait Keylike<const MCL: usize, const MCC: usize, const MPL: usize, S> {
// Required methods
fn wdm_subspace_id(&self) -> &S;
fn wdm_path(&self) -> &Path<MCL, MCC, MPL>;
}Expand description
A keylike value is one that can be used to uniquely identify an Entry within a namespace-specific store.
A subspace_id and a path together uniquely identify an entry in a namespace, because between any two non-equal entries with of equal subspace_id, path, and namespace_id, one would overwrite the other.
This trait does not include the namespace id; we assume that entry storage is separated by namespace from the get-go.
Required Methods§
Sourcefn wdm_subspace_id(&self) -> &S
fn wdm_subspace_id(&self) -> &S
Returns the subspace_id of self.