pub struct ResourceTableEntryMut<'a> { /* private fields */ }Available on crate features
component-model and runtime only.Expand description
Mutable access to a ResourceTableEntry, yielded by
ResourceTable::iter_mut and ResourceTable::iter_entries.
Implementations§
Source§impl<'a> ResourceTableEntryMut<'a>
impl<'a> ResourceTableEntryMut<'a>
Sourcepub fn entry_mut(&mut self) -> &mut (dyn Any + Send)
pub fn entry_mut(&mut self) -> &mut (dyn Any + Send)
The mutable dynamically-typed item stored at this table entry
Sourcepub fn into_entry_mut(self) -> &'a mut (dyn Any + Send)
pub fn into_entry_mut(self) -> &'a mut (dyn Any + Send)
Consumes this wrapper, returning the mutable dynamically-typed item stored at this table entry with the lifetime of the table borrow.
Methods from Deref<Target = ResourceTableEntry>§
Sourcepub fn type_name(&self) -> &'static str
pub fn type_name(&self) -> &'static str
The name of the item’s type, as given by core::any::type_name.
Trait Implementations§
Source§impl Debug for ResourceTableEntryMut<'_>
impl Debug for ResourceTableEntryMut<'_>
Source§impl Deref for ResourceTableEntryMut<'_>
impl Deref for ResourceTableEntryMut<'_>
Source§type Target = ResourceTableEntry
type Target = ResourceTableEntry
The resulting type after dereferencing.
Source§fn deref(&self) -> &ResourceTableEntry
fn deref(&self) -> &ResourceTableEntry
Dereferences the value.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResourceTableEntryMut<'a>
impl<'a> !Sync for ResourceTableEntryMut<'a>
impl<'a> !UnwindSafe for ResourceTableEntryMut<'a>
impl<'a> Forget for ResourceTableEntryMut<'a>
impl<'a> Freeze for ResourceTableEntryMut<'a>
impl<'a> Move for ResourceTableEntryMut<'a>
impl<'a> Send for ResourceTableEntryMut<'a>
impl<'a> Unpin for ResourceTableEntryMut<'a>
impl<'a> UnsafeUnpin for ResourceTableEntryMut<'a>
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> 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