[−][src]Struct radicle_surf::tree::Tree
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]
A: HasKey<K>,
K: Ord + Clone,
pub fn find(&self, keys: NonEmpty<K>) -> Option<&SubTree<K, A>> where
A: HasKey<K>,
K: Ord + Clone,
[src]
A: HasKey<K>,
K: Ord + Clone,
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]
F: Fn(&A, &A) -> Ordering,
pub fn maximum(&self) -> &A where
A: Ord,
[src]
A: Ord,
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]
fn cmp(&self, other: &Tree<K, A>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[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]
fn partial_cmp(&self, other: &Tree<K, A>) -> Option<Ordering>
[src]
fn lt(&self, other: &Tree<K, A>) -> bool
[src]
fn le(&self, other: &Tree<K, A>) -> bool
[src]
fn gt(&self, other: &Tree<K, A>) -> bool
[src]
fn ge(&self, other: &Tree<K, A>) -> bool
[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,
A: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, A> Send for Tree<K, A> where
A: Send,
K: Send,
A: Send,
K: Send,
impl<K, A> Sync for Tree<K, A> where
A: Sync,
K: Sync,
A: Sync,
K: Sync,
impl<K, A> Unpin for Tree<K, A> where
A: Unpin,
K: Unpin,
A: Unpin,
K: Unpin,
impl<K, A> UnwindSafe for Tree<K, A> where
A: UnwindSafe,
K: UnwindSafe,
A: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,