pub enum DynMphf {
Fmph(Function),
GOV(GOVMPH),
}
Expand description
Enum of possible implementations of SwhidMphf
.
Loads either [ph::fmph::Function
] or crate::java_compat::mph::gov::GOVMPH
depending on which file is available at the given path.
Variants§
Trait Implementations§
source§impl SwhidMphf for DynMphf
impl SwhidMphf for DynMphf
fn load(basepath: impl AsRef<Path>) -> Result<Self>
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 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
§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere U: CastableFrom<T>,
§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere U: DowncastableFrom<T>,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere T: ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.