[−][src]Trait intrusive_collections::xor_linked_list::XorLinkedListOps
Link operations for XorLinkedList
.
Required methods
unsafe fn next(
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
Returns the "next" link pointer of ptr
.
Safety
prev
must have been previously passed to the set
method, or
prev
must be equal to the new
argument previously passed to replace_next_or_prev
.
An implementation of next
must not panic.
unsafe fn prev(
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
Returns the "prev" link pointer of ptr
.
Safety
next
must have been previously passed to the set
method, or
next
must be equal to the new
argument previously passed to replace_next_or_prev
.
An implementation of prev
must not panic.
unsafe fn set(
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
unsafe fn replace_next_or_prev(
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
Implementors
impl XorLinkedListOps for intrusive_collections::linked_list::LinkOps
[src]
unsafe fn next(
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn prev(
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn set(
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
unsafe fn replace_next_or_prev(
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
impl XorLinkedListOps for intrusive_collections::rbtree::LinkOps
[src]
unsafe fn next(
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn prev(
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn set(
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
unsafe fn replace_next_or_prev(
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
impl XorLinkedListOps for intrusive_collections::singly_linked_list::LinkOps
[src]
unsafe fn next(
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn prev(
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn set(
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
unsafe fn replace_next_or_prev(
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
impl XorLinkedListOps for intrusive_collections::xor_linked_list::LinkOps
[src]
unsafe fn next(
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn prev(
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
[src]
&self,
ptr: Self::LinkPtr,
next: Option<Self::LinkPtr>
) -> Option<Self::LinkPtr>
unsafe fn set(
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
prev: Option<Self::LinkPtr>,
next: Option<Self::LinkPtr>
)
unsafe fn replace_next_or_prev(
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)
[src]
&mut self,
ptr: Self::LinkPtr,
old: Option<Self::LinkPtr>,
new: Option<Self::LinkPtr>
)