TryHash256

Trait TryHash256 

pub trait TryHash256: Serialize {
    // Provided method
    fn try_hash_sha256(&self) -> Result<HashDigest, SerializationError> { ... }
}
Expand description

A trait for types that can be hashed with Sha256 by serializing them fallibly and then hashing.

Provided Methods§

fn try_hash_sha256(&self) -> Result<HashDigest, SerializationError>

Try to hash the type

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§