Trait FromHashFragment

pub trait FromHashFragment {
    // Required method
    fn from_hash_fragment(hash: &str) -> Self;
}

Required Methods§

fn from_hash_fragment(hash: &str) -> Self

Create an instance of Self from a hash fragment.

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§

§

impl<T> FromHashFragment for T
where T: FromStr + Default, <T as FromStr>::Err: Display,