referrerpolicy=no-referrer-when-downgrade
sp_runtime::traits

Trait HashOutput

Source
pub trait HashOutput:
    Member
    + MaybeSerializeDeserialize
    + MaybeDisplay
    + MaybeFromStr
    + Debug
    + Hash
    + AsRef<[u8]>
    + AsMut<[u8]>
    + Copy
    + Ord
    + Default
    + Encode
    + Decode
    + DecodeWithMemTracking
    + EncodeLike
    + MaxEncodedLen
    + TypeInfo { }
Expand description

Super trait with all the attributes for a hashing output.

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> HashOutput for T
where T: Member + MaybeSerializeDeserialize + MaybeDisplay + MaybeFromStr + Debug + Hash + AsRef<[u8]> + AsMut<[u8]> + Copy + Ord + Default + Encode + Decode + DecodeWithMemTracking + EncodeLike + MaxEncodedLen + TypeInfo,