pub struct LinkAdapter<N> { /* private fields */ }Expand description
An adapter for the Link-structure, allowing it to be inserted into an intrusive LinkedList.
Implementations§
Trait Implementations§
Source§impl<N> Adapter for LinkAdapter<N>
impl<N> Adapter for LinkAdapter<N>
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 = DefaultPointerOps<UnsafeRef<Link<N>>>
type PointerOps = DefaultPointerOps<UnsafeRef<Link<N>>>
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 <Self::PointerOps as PointerOps>::Value
unsafe fn get_value( &self, link: <Self::LinkOps as LinkOps>::LinkPtr, ) -> *const <Self::PointerOps as PointerOps>::Value
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 <Self::PointerOps as PointerOps>::Value,
) -> <Self::LinkOps as LinkOps>::LinkPtr
unsafe fn get_link( &self, value: *const <Self::PointerOps as PointerOps>::Value, ) -> <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.
Source§impl<N> Clone for LinkAdapter<N>
impl<N> Clone for LinkAdapter<N>
Source§impl<N> Default for LinkAdapter<N>
impl<N> Default for LinkAdapter<N>
impl<N> Copy for LinkAdapter<N>
impl<N> Send for LinkAdapter<N>
impl<N> Sync for LinkAdapter<N>
Auto Trait Implementations§
impl<N> Freeze for LinkAdapter<N>
impl<N> !RefUnwindSafe for LinkAdapter<N>
impl<N> Unpin for LinkAdapter<N>
impl<N> !UnwindSafe for LinkAdapter<N>
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