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 size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
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.
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§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 for StorageHasherIR
impl PartialEq 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 ==
.impl EncodeLike for StorageHasherIR
impl Eq for StorageHasherIR
impl StructuralPartialEq for StorageHasherIR
Auto Trait Implementations§
impl Freeze for StorageHasherIR
impl RefUnwindSafe for StorageHasherIR
impl Send for StorageHasherIR
impl Sync for StorageHasherIR
impl Unpin for StorageHasherIR
impl UnwindSafe for StorageHasherIR
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more