Trait FromHashFragment

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

Required Methods§

Source

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§

Source§

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