LoadableSwhidMphf

Trait LoadableSwhidMphf 

Source
pub trait LoadableSwhidMphf: SwhidMphf {
    type WithMappedPermutation: SwhidMphf;

    // Required methods
    fn load(basepath: impl AsRef<Path>) -> Result<Self>
       where Self: Sized;
    fn with_mapped_permutation(
        self,
        basepath: impl AsRef<Path>,
    ) -> Result<Self::WithMappedPermutation>;
}
Expand description

Sub-trait of SwhidMphf for “concrete” MPHF implementations

Required Associated Types§

Required Methods§

Source

fn load(basepath: impl AsRef<Path>) -> Result<Self>
where Self: Sized,

Source

fn with_mapped_permutation( self, basepath: impl AsRef<Path>, ) -> Result<Self::WithMappedPermutation>

Given the base path of the MPH, mmaps the associated .order file and returns it

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§