pub struct ResourceTableEntry { /* private fields */ }Available on crate features
component-model and runtime only.Expand description
This structure tracks parent and child relationships for a given table entry.
Parents and children are referred to by table index. We maintain the following invariants:
- the parent must exist when adding a child.
- whenever a child is created, its index is added to children.
- whenever a child is deleted, its index is removed from children.
- an entry with children may not be deleted.
Implementations§
Source§impl ResourceTableEntry
impl 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§
Auto Trait Implementations§
impl !RefUnwindSafe for ResourceTableEntry
impl !Sync for ResourceTableEntry
impl !UnwindSafe for ResourceTableEntry
impl Forget for ResourceTableEntry
impl Freeze for ResourceTableEntry
impl Move for ResourceTableEntry
impl Send for ResourceTableEntry
impl Unpin for ResourceTableEntry
impl UnsafeUnpin for ResourceTableEntry
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