Struct ResourceTableEntry
pub struct ResourceTableEntry { /* private fields */ }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§
§impl ResourceTableEntry
impl ResourceTableEntry
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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