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

Trait HashOutput

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§

§

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,