Struct scrypto::component::kv_store_data_ref::KeyValueEntryRef
source · pub struct KeyValueEntryRef<'a, V: ScryptoEncode> {
lock_handle: KeyValueEntryHandle,
value: V,
phantom: PhantomData<&'a ()>,
}
Fields§
§lock_handle: KeyValueEntryHandle
§value: V
§phantom: PhantomData<&'a ()>
Implementations§
source§impl<'a, V: ScryptoEncode> KeyValueEntryRef<'a, V>
impl<'a, V: ScryptoEncode> KeyValueEntryRef<'a, V>
pub fn new( lock_handle: KeyValueEntryHandle, value: V ) -> KeyValueEntryRef<'a, V>
Trait Implementations§
source§impl<'a, V: ScryptoEncode> Deref for KeyValueEntryRef<'a, V>
impl<'a, V: ScryptoEncode> Deref for KeyValueEntryRef<'a, V>
source§impl<'a, V: Display + ScryptoEncode> Display for KeyValueEntryRef<'a, V>
impl<'a, V: Display + ScryptoEncode> Display for KeyValueEntryRef<'a, V>
source§impl<'a, V: ScryptoEncode> Drop for KeyValueEntryRef<'a, V>
impl<'a, V: ScryptoEncode> Drop for KeyValueEntryRef<'a, V>
Auto Trait Implementations§
impl<'a, V> RefUnwindSafe for KeyValueEntryRef<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for KeyValueEntryRef<'a, V>where
V: Send,
impl<'a, V> Sync for KeyValueEntryRef<'a, V>where
V: Sync,
impl<'a, V> Unpin for KeyValueEntryRef<'a, V>where
V: Unpin,
impl<'a, V> UnwindSafe for KeyValueEntryRef<'a, V>where
V: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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