Struct sp_storage::StorageKey
source · pub struct StorageKey(pub Vec<u8>);
Expand description
Storage key.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
source§impl AsRef<[u8]> for StorageKey
impl AsRef<[u8]> for StorageKey
source§impl Clone for StorageKey
impl Clone for StorageKey
source§fn clone(&self) -> StorageKey
fn clone(&self) -> StorageKey
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 StorageKey
impl Debug for StorageKey
source§impl Decode for StorageKey
impl Decode for StorageKey
source§impl<'de> Deserialize<'de> for StorageKey
impl<'de> Deserialize<'de> for StorageKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for StorageKey
impl Encode for StorageKey
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: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
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 encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Hash for StorageKey
impl Hash for StorageKey
source§impl Ord for StorageKey
impl Ord for StorageKey
source§fn cmp(&self, other: &StorageKey) -> Ordering
fn cmp(&self, other: &StorageKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StorageKey> for StorageKey
impl PartialEq<StorageKey> for StorageKey
source§fn eq(&self, other: &StorageKey) -> bool
fn eq(&self, other: &StorageKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StorageKey> for StorageKey
impl PartialOrd<StorageKey> for StorageKey
source§fn partial_cmp(&self, other: &StorageKey) -> Option<Ordering>
fn partial_cmp(&self, other: &StorageKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more