pub enum DynMphf {
Pthash(SwhidPthash),
GOV(GOVMPH),
}Expand description
Enum of possible implementations of SwhidMphf.
Loads either SwhidPthash or GOVMPH
depending on which file is available at the given path.
Variants§
Pthash(SwhidPthash)
GOV(GOVMPH)
Trait Implementations§
Source§impl From<SwhidPthash> for DynMphf
impl From<SwhidPthash> for DynMphf
Source§fn from(value: SwhidPthash) -> DynMphf
fn from(value: SwhidPthash) -> DynMphf
Converts to this type from the input type.
Source§impl LoadableSwhidMphf for DynMphf
impl LoadableSwhidMphf for DynMphf
type WithMappedPermutation = PermutedDynMphf
fn load(basepath: impl AsRef<Path>) -> Result<Self>
Source§fn with_mapped_permutation(
self,
basepath: impl AsRef<Path>,
) -> Result<Self::WithMappedPermutation>
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
Source§impl SwhidMphf for DynMphf
impl SwhidMphf for DynMphf
Source§fn hash_array(&self, swhid: &[u8; 22]) -> Option<NodeId>
fn hash_array(&self, swhid: &[u8; 22]) -> Option<NodeId>
Hashes a SWHID’s binary representation
Source§fn hash_str(&self, swhid: impl AsRef<str>) -> Option<NodeId>
fn hash_str(&self, swhid: impl AsRef<str>) -> Option<NodeId>
Hashes a SWHID’s textual representation
Auto Trait Implementations§
impl Freeze for DynMphf
impl RefUnwindSafe for DynMphf
impl Send for DynMphf
impl Sync for DynMphf
impl Unpin for DynMphf
impl UnwindSafe for DynMphf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.