Keylike

Trait Keylike 

Source
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 “address” an Entry within a namespace.

Within a namespace, entries can be uniquely identified by their subspace_id (of type S) and their path.

Required Methods§

Source

fn wdm_subspace_id(&self) -> &S

Returns the subspace_id of self.

Source

fn wdm_path(&self) -> &Path<MCL, MCC, MPL>

Returns the path of self.

Implementations on Foreign Types§

Source§

impl<const MCL: usize, const MCC: usize, const MPL: usize, S> Keylike<MCL, MCC, MPL, S> for (S, Path<MCL, MCC, MPL>)

Source§

fn wdm_subspace_id(&self) -> &S

Source§

fn wdm_path(&self) -> &Path<MCL, MCC, MPL>

Implementors§

Source§

impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Keylike<MCL, MCC, MPL, S> for Entry<MCL, MCC, MPL, N, S, PD>