[][src]Struct radicle_surf::tree::Tree

pub struct Tree<K, A>(_);

Methods

impl<K, A> Tree<K, A>[src]

pub fn iter(&self) -> impl Iterator<Item = &SubTree<K, A>>[src]

pub fn find_node(&self, keys: NonEmpty<K>) -> Option<&A> where
    A: HasKey<K>,
    K: Ord + Clone
[src]

pub fn find(&self, keys: NonEmpty<K>) -> Option<&SubTree<K, A>> where
    A: HasKey<K>,
    K: Ord + Clone
[src]

Find a SubTree given a search path. If the path does not match it will return None.

pub fn maximum_by<F>(&self, f: &F) -> &A where
    F: Fn(&A, &A) -> Ordering
[src]

pub fn maximum(&self) -> &A where
    A: Ord
[src]

Trait Implementations

impl<K: Clone, A: Clone> Clone for Tree<K, A>[src]

impl<K: Debug, A: Debug> Debug for Tree<K, A>[src]

impl<K: Eq, A: Eq> Eq for Tree<K, A>[src]

impl<K: Ord, A: Ord> Ord for Tree<K, A>[src]

impl<K: PartialEq, A: PartialEq> PartialEq<Tree<K, A>> for Tree<K, A>[src]

impl<K: PartialOrd, A: PartialOrd> PartialOrd<Tree<K, A>> for Tree<K, A>[src]

impl<K, A> StructuralEq for Tree<K, A>[src]

impl<K, A> StructuralPartialEq for Tree<K, A>[src]

Auto Trait Implementations

impl<K, A> RefUnwindSafe for Tree<K, A> where
    A: RefUnwindSafe,
    K: RefUnwindSafe

impl<K, A> Send for Tree<K, A> where
    A: Send,
    K: Send

impl<K, A> Sync for Tree<K, A> where
    A: Sync,
    K: Sync

impl<K, A> Unpin for Tree<K, A> where
    A: Unpin,
    K: Unpin

impl<K, A> UnwindSafe for Tree<K, A> where
    A: UnwindSafe,
    K: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.