Struct ink_storage_traits::ResolverKey
source · pub struct ResolverKey<L, R>(/* private fields */);
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, R: Clone> Clone for ResolverKey<L, R>
impl<L: Clone, R: Clone> 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: Default, R: Default> Default for ResolverKey<L, R>
impl<L: Default, R: Default> 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, R: PartialEq> PartialEq for ResolverKey<L, R>
impl<L: PartialEq, R: PartialEq> PartialEq 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, R: PartialOrd> PartialOrd for ResolverKey<L, R>
impl<L: PartialOrd, R: PartialOrd> PartialOrd 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 moresource§impl<L, R> StorageKey for ResolverKey<L, R>where
L: StorageKey + KeyType,
R: StorageKey + KeyType,
impl<L, R> StorageKey for ResolverKey<L, R>where
L: StorageKey + KeyType,
R: StorageKey + KeyType,
source§impl<L, R> TypeInfo for ResolverKey<L, R>where
PhantomData<fn() -> (L, R)>: TypeInfo + 'static,
L: TypeInfo + 'static,
R: TypeInfo + 'static,
impl<L, R> TypeInfo for ResolverKey<L, R>where
PhantomData<fn() -> (L, R)>: TypeInfo + 'static,
L: TypeInfo + 'static,
R: TypeInfo + 'static,
impl<L: Copy, R: Copy> Copy for ResolverKey<L, R>
impl<L: Eq, R: Eq> Eq for ResolverKey<L, R>
impl<L, R> StructuralPartialEq for ResolverKey<L, R>
Auto Trait Implementations§
impl<L, R> Freeze for ResolverKey<L, R>
impl<L, R> RefUnwindSafe for ResolverKey<L, R>
impl<L, R> Send for ResolverKey<L, R>
impl<L, R> Sync for ResolverKey<L, R>
impl<L, R> Unpin for ResolverKey<L, R>
impl<L, R> UnwindSafe for ResolverKey<L, R>
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)