Struct intrusive_collections::linked_list::Link [] [src]

pub struct Link {
    // some fields omitted
}

Intrusive link that allows an object to be inserted into a LinkedList.

Methods

impl Link
[src]

fn new() -> Link

Creates a new Link.

fn is_linked(&self) -> bool

Checks whether the Link is linked into a LinkedList.

Note that this function is only thread-safe if the "nightly" feature is enabled.

Unlinks the object from the LinkedList without invalidating the rest of the list.

Safety

The LinkedList is left in an invalid state after this function is called. To continue using the LinkedList, 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

impl Default for Link
[src]

fn default() -> Link

Returns the "default value" for a type. Read more

impl Debug for Link
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.