pub struct DataRef<V: ScryptoEncode> {
lock_handle: SubstateHandle,
value: V,
}
Fields§
§lock_handle: SubstateHandle
§value: V
Implementations§
source§impl<V: ScryptoEncode> DataRef<V>
impl<V: ScryptoEncode> DataRef<V>
pub fn new(lock_handle: SubstateHandle, substate: V) -> DataRef<V>
Trait Implementations§
source§impl<V: ScryptoEncode> Deref for DataRef<V>
impl<V: ScryptoEncode> Deref for DataRef<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for DataRef<V>where V: RefUnwindSafe,
impl<V> Send for DataRef<V>where V: Send,
impl<V> Sync for DataRef<V>where V: Sync,
impl<V> Unpin for DataRef<V>where V: Unpin,
impl<V> UnwindSafe for DataRef<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