Enum sp_metadata_ir::StorageHasherIR
source · pub enum StorageHasherIR {
Blake2_128,
Blake2_256,
Blake2_128Concat,
Twox128,
Twox256,
Twox64Concat,
Identity,
}
Expand description
Hasher used by storage maps
Variants§
Blake2_128
128-bit Blake2 hash.
Blake2_256
256-bit Blake2 hash.
Blake2_128Concat
Multiple 128-bit Blake2 hashes concatenated.
Twox128
128-bit XX hash.
Twox256
256-bit XX hash.
Twox64Concat
Multiple 64-bit XX hashes concatenated.
Identity
Identity hashing (no hashing).
Trait Implementations§
source§impl Clone for StorageHasherIR
impl Clone for StorageHasherIR
source§fn clone(&self) -> StorageHasherIR
fn clone(&self) -> StorageHasherIR
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StorageHasherIR
impl Debug for StorageHasherIR
source§impl Encode for StorageHasherIR
impl Encode for StorageHasherIR
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<StorageHasherIR> for StorageHasher
impl From<StorageHasherIR> for StorageHasher
source§fn from(ir: StorageHasherIR) -> Self
fn from(ir: StorageHasherIR) -> Self
Converts to this type from the input type.
source§impl PartialEq<StorageHasherIR> for StorageHasherIR
impl PartialEq<StorageHasherIR> for StorageHasherIR
source§fn eq(&self, other: &StorageHasherIR) -> bool
fn eq(&self, other: &StorageHasherIR) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.