pub struct WeakTable {
inner: Vec<Weak<Vec<u8>>>,
}Expand description
This is inspired by the weak-table crate.
It holds a Vec of weak pointers that are garbage collected as the Vec
Fields§
§inner: Vec<Weak<Vec<u8>>>Implementations§
Auto Trait Implementations§
impl Freeze for WeakTable
impl RefUnwindSafe for WeakTable
impl Send for WeakTable
impl Sync for WeakTable
impl Unpin for WeakTable
impl UnsafeUnpin for WeakTable
impl UnwindSafe for WeakTable
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