Struct ink_storage_traits::ManualKey
source · pub struct ManualKey<const KEY: Key, ParentKey: StorageKey = ()>(/* private fields */);
Expand description
Manual key type specifies the storage key.
Trait Implementations§
source§impl<T, const KEY: Key, ParentKey> AutoStorableHint<ManualKey<KEY, ParentKey>> for Twhere
T: StorableHint<ParentKey> + StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>,
<T as StorableHint<ParentKey>>::PreferredKey: KeyType,
ParentKey: StorageKey,
impl<T, const KEY: Key, ParentKey> AutoStorableHint<ManualKey<KEY, ParentKey>> for Twhere
T: StorableHint<ParentKey> + StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>,
<T as StorableHint<ParentKey>>::PreferredKey: KeyType,
ParentKey: StorageKey,
§type Type = <T as StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>>::Type
type Type = <T as StorableHint<ResolverKey<<T as StorableHint<ParentKey>>::PreferredKey, ManualKey<KEY, ParentKey>>>>::Type
Storable type with storage key inside.
source§impl<const KEY: Key, ParentKey: PartialEq + StorageKey> PartialEq for ManualKey<KEY, ParentKey>
impl<const KEY: Key, ParentKey: PartialEq + StorageKey> PartialEq for ManualKey<KEY, ParentKey>
source§impl<const KEY: Key, ParentKey: PartialOrd + StorageKey> PartialOrd for ManualKey<KEY, ParentKey>
impl<const KEY: Key, ParentKey: PartialOrd + StorageKey> PartialOrd for ManualKey<KEY, ParentKey>
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<const KEY: Key, ParentKey: StorageKey> StorageKey for ManualKey<KEY, ParentKey>
impl<const KEY: Key, ParentKey: StorageKey> StorageKey for ManualKey<KEY, ParentKey>
source§impl<const KEY: Key, ParentKey> TypeInfo for ManualKey<KEY, ParentKey>where
PhantomData<fn() -> ParentKey>: TypeInfo + 'static,
ParentKey: StorageKey + TypeInfo + 'static,
impl<const KEY: Key, ParentKey> TypeInfo for ManualKey<KEY, ParentKey>where
PhantomData<fn() -> ParentKey>: TypeInfo + 'static,
ParentKey: StorageKey + TypeInfo + 'static,
impl<const KEY: Key, ParentKey: Copy + StorageKey> Copy for ManualKey<KEY, ParentKey>
impl<const KEY: Key, ParentKey: Eq + StorageKey> Eq for ManualKey<KEY, ParentKey>
impl<const KEY: Key, ParentKey: StorageKey> StructuralPartialEq for ManualKey<KEY, ParentKey>
Auto Trait Implementations§
impl<const KEY: u32, ParentKey> Freeze for ManualKey<KEY, ParentKey>
impl<const KEY: u32, ParentKey> RefUnwindSafe for ManualKey<KEY, ParentKey>
impl<const KEY: u32, ParentKey> Send for ManualKey<KEY, ParentKey>
impl<const KEY: u32, ParentKey> Sync for ManualKey<KEY, ParentKey>
impl<const KEY: u32, ParentKey> Unpin for ManualKey<KEY, ParentKey>
impl<const KEY: u32, ParentKey> UnwindSafe for ManualKey<KEY, ParentKey>
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
)