Struct ink_storage_traits::ResolverKey
source · pub struct ResolverKey<L: StorageKey, R: StorageKey>(_);
Expand description
Resolver key type selects between preferred key and autogenerated key.
If the L
type is AutoKey
it returns auto-generated R
else L
.
Trait Implementations§
source§impl<L: Clone + StorageKey, R: Clone + StorageKey> Clone for ResolverKey<L, R>
impl<L: Clone + StorageKey, R: Clone + StorageKey> Clone for ResolverKey<L, R>
source§fn clone(&self) -> ResolverKey<L, R>
fn clone(&self) -> ResolverKey<L, R>
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<L: Debug + StorageKey, R: Debug + StorageKey> Debug for ResolverKey<L, R>
impl<L: Debug + StorageKey, R: Debug + StorageKey> Debug for ResolverKey<L, R>
source§impl<L: Default + StorageKey, R: Default + StorageKey> Default for ResolverKey<L, R>
impl<L: Default + StorageKey, R: Default + StorageKey> Default for ResolverKey<L, R>
source§fn default() -> ResolverKey<L, R>
fn default() -> ResolverKey<L, R>
Returns the “default value” for a type. Read more
source§impl<L: PartialEq + StorageKey, R: PartialEq + StorageKey> PartialEq<ResolverKey<L, R>> for ResolverKey<L, R>
impl<L: PartialEq + StorageKey, R: PartialEq + StorageKey> PartialEq<ResolverKey<L, R>> for ResolverKey<L, R>
source§fn eq(&self, other: &ResolverKey<L, R>) -> bool
fn eq(&self, other: &ResolverKey<L, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<L: PartialOrd + StorageKey, R: PartialOrd + StorageKey> PartialOrd<ResolverKey<L, R>> for ResolverKey<L, R>
impl<L: PartialOrd + StorageKey, R: PartialOrd + StorageKey> PartialOrd<ResolverKey<L, R>> for ResolverKey<L, R>
source§fn partial_cmp(&self, other: &ResolverKey<L, R>) -> Option<Ordering>
fn partial_cmp(&self, other: &ResolverKey<L, R>) -> 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