[][src]Trait try_collections::TryHash

pub trait TryHash {
    type Error;
    fn try_hash<H: Hasher>(&self, hasher: &mut H) -> Result<(), Self::Error>;
}

Try to hash something, returning an error if it's not possible.

Associated Types

type Error

The error to return.

Loading content...

Required methods

fn try_hash<H: Hasher>(&self, hasher: &mut H) -> Result<(), Self::Error>

Try to hash self, returning an Error if it's not possible.

Loading content...

Implementors

impl<T: Hash> TryHash for T[src]

type Error = Infallible

Loading content...