pub struct ResourceBorrow<P: PtrSize>(pub VMHandleTableSlot<P>);Expand description
Offsets of fields within the VMHandleTableSlot::ResourceBorrow variant.
Tuple Fields§
§0: VMHandleTableSlot<P>Implementations§
Source§impl<P: PtrSize> ResourceBorrow<P>
impl<P: PtrSize> ResourceBorrow<P>
Sourcepub fn tag_value(&self) -> u32
pub fn tag_value(&self) -> u32
The value of the u32 tag that identifies the ResourceBorrow variant.
Sourcepub fn resource(&self) -> u8
pub fn resource(&self) -> u8
The offset of the resource field of VMHandleTableSlot::ResourceBorrow.
Sourcepub fn lend_count(&self) -> u8
pub fn lend_count(&self) -> u8
The offset of the lend_count field of VMHandleTableSlot::ResourceBorrow.
Auto Trait Implementations§
impl<P> Freeze for ResourceBorrow<P>where
VMHandleTableSlot<P>: Freeze,
impl<P> RefUnwindSafe for ResourceBorrow<P>where
VMHandleTableSlot<P>: RefUnwindSafe,
impl<P> Send for ResourceBorrow<P>where
VMHandleTableSlot<P>: Send,
impl<P> Sync for ResourceBorrow<P>where
VMHandleTableSlot<P>: Sync,
impl<P> Unpin for ResourceBorrow<P>where
VMHandleTableSlot<P>: Unpin,
impl<P> UnsafeUnpin for ResourceBorrow<P>where
VMHandleTableSlot<P>: UnsafeUnpin,
impl<P> UnwindSafe for ResourceBorrow<P>where
VMHandleTableSlot<P>: UnwindSafe,
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