[][src]Struct rbtset::Node

pub struct Node<T>(_);

Type of the tree elements containing the actuel data.

Methods

impl<T> Node<T>[src]

pub fn apply<F>(&self, f: F) where
    F: Fn(&mut T), 
[src]

Mutates the contained data in-place by applying the given closure.

pub fn data(&self) -> impl Deref<Target = T> + '_[src]

Returns a reference to the contained data.

pub fn clone_data(&self) -> T where
    T: Clone
[src]

Returns a clone of the contained data.

Trait Implementations

impl<T> PartialEq<Node<T>> for Node<T>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<T> From<T> for Node<T>[src]

impl<T: Debug> Debug for Node<T>[src]

Auto Trait Implementations

impl<T> !Send for Node<T>

impl<T> !Sync for Node<T>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]