pub struct Adapter<C: ?Sized + Config, P = Irc<Continuation<'static, C>>> { /* private fields */ }Expand description
Adapter for continuations to be inserted into intrusive data structures.
Implementations§
Trait Implementations§
Source§impl<C, P> Adapter for Adapter<C, P>where
C: ?Sized + Config,
P: From<Irc<Continuation<'static, C>>> + Into<Irc<Continuation<'static, C>>>,
impl<C, P> Adapter for Adapter<C, P>where
C: ?Sized + Config,
P: From<Irc<Continuation<'static, C>>> + Into<Irc<Continuation<'static, C>>>,
Source§type LinkOps = <Link as DefaultLinkOps>::Ops
type LinkOps = <Link as DefaultLinkOps>::Ops
Collection-specific link operations which allow an object to be inserted in
an intrusive collection.
Source§type PointerOps = PointerOps<Continuation<'static, C>, P>
type PointerOps = PointerOps<Continuation<'static, C>, P>
Collection-specific pointer conversions which allow an object to
be inserted in an intrusive collection.
Source§unsafe fn get_value(
&self,
link: <Self::LinkOps as LinkOps>::LinkPtr,
) -> *const Continuation<'static, C>
unsafe fn get_value( &self, link: <Self::LinkOps as LinkOps>::LinkPtr, ) -> *const Continuation<'static, C>
Gets a reference to an object from a reference to a link in that object. Read more
Source§unsafe fn get_link(
&self,
value: *const Continuation<'static, C>,
) -> <Self::LinkOps as LinkOps>::LinkPtr
unsafe fn get_link( &self, value: *const Continuation<'static, C>, ) -> <Self::LinkOps as LinkOps>::LinkPtr
Gets a reference to the link for the given object. Read more
Source§fn link_ops_mut(&mut self) -> &mut Self::LinkOps
fn link_ops_mut(&mut self) -> &mut Self::LinkOps
Returns a reference to the mutable link operations.
Source§fn pointer_ops(&self) -> &Self::PointerOps
fn pointer_ops(&self) -> &Self::PointerOps
Returns a reference to the pointer converter.
impl<C: ?Sized + Config, P> Copy for Adapter<C, P>
Auto Trait Implementations§
impl<C, P = Irc<Continuation<'static, C>>> !RefUnwindSafe for Adapter<C, P>
impl<C, P = Irc<Continuation<'static, C>>> !Send for Adapter<C, P>
impl<C, P = Irc<Continuation<'static, C>>> !Sync for Adapter<C, P>
impl<C, P = Irc<Continuation<'static, C>>> !UnwindSafe for Adapter<C, P>
impl<C, P> Freeze for Adapter<C, P>where
C: ?Sized,
impl<C, P> Unpin for Adapter<C, P>
impl<C, P> UnsafeUnpin for Adapter<C, P>where
C: ?Sized,
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