Struct intrusive_collections::singly_linked_list::Link
[−]
[src]
pub struct Link { // some fields omitted }
Intrusive link that allows an object to be inserted into a
SinglyLinkedList
.
Methods
impl Link
[src]
fn new() -> Link
Creates a new Link
.
fn is_linked(&self) -> bool
Checks whether the Link
is linked into a SinglyLinkedList
.
unsafe fn unsafe_unlink(&self)
Unlinks the object from the SinglyLinkedList
without invalidating the
rest of the list.
Safety
The SinglyLinkedList
is left in an invalid state after this function
is called. To continue using the SinglyLinkedList
, it must be manually
reset by calling the fast_clear
function on it. Any other operations
on the affected list will result in undefined behavior.
Trait Implementations
impl Send for Link
[src]
impl Sync for Link
[src]
impl Clone for Link
[src]
fn clone(&self) -> Link
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more