#[repr(C)]pub struct Linked<T> {
pub link: Link,
pub value: T,
}
Expand description
A value linked to a collector.
Objects that may be retired must embed the Link
type. This is a
convenience wrapper for linked values that can be created with the
Collector::link_value
or Collector::link_boxed
methods.
Fields§
§link: Link
§value: T
Trait Implementations§
impl<T> AsLink for Linked<T>
impl<T: Eq> Eq for Linked<T>
Auto Trait Implementations§
impl<T> !Freeze for Linked<T>
impl<T> !RefUnwindSafe for Linked<T>
impl<T> !Send for Linked<T>
impl<T> !Sync for Linked<T>
impl<T> Unpin for Linked<T>where
T: Unpin,
impl<T> UnwindSafe for Linked<T>where
T: 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