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,
Source§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>
Source§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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.