Struct intrusive_collections::rbtree::Link
[−]
[src]
pub struct Link { // some fields omitted }
Intrusive link that allows an object to be inserted into a RBTree
.
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.
unsafe fn unsafe_unlink(&self)
Unlinks the object from the RBTree
without invalidating the rest
of the tree.
Safety
The RBTree
is left in an invalid state after this function is called.
To continue using the RBTree
, it must be manually reset by calling the
fast_clear
function on it. Any other operations on the affected tree
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