pub struct Link { /* private fields */ }Expand description
Implementations§
Source§impl Link
impl Link
Sourcepub fn cast<T: AsLink>(link: *mut Link) -> *mut T
pub fn cast<T: AsLink>(link: *mut Link) -> *mut T
Cast this link to it’s underlying type.
Note that while this function is safe, using the returned
pointer is only sound if the link is in fact a type-erased T.
This means that when casting a link in a reclaimer, the value
that was retired must be of type T.
Auto Trait Implementations§
impl !Freeze for Link
impl !RefUnwindSafe for Link
impl !Send for Link
impl !Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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