[−][src]Struct algorithms_edu::data_structures::balanced_tree::avl_tree::AvlTree
Implementations
impl<T: Ord + Debug + PartialEq + Eq + Clone> AvlTree<T>
[src]
pub fn new() -> Self
[src]
pub fn height(&self) -> Option<i32>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn contains(&self, value: &T) -> bool
[src]
pub fn insert(&mut self, value: T) -> bool
[src]
If the value is not found in the AVL tree, insert it and return true
.
Otherwise, do not insert and return false
.
pub fn remove(&mut self, elem: &T) -> bool
[src]
pub fn iter(&self) -> AvlIter<'_, T>ⓘ
[src]
Trait Implementations
impl<T: Clone + Ord + Debug + PartialEq + Eq> Clone for AvlTree<T>
[src]
impl<T: Debug + Ord + PartialEq + Eq + Clone> Debug for AvlTree<T>
[src]
impl<T: Default + Ord + Debug + PartialEq + Eq + Clone> Default for AvlTree<T>
[src]
impl<T: Eq + Ord + Debug + PartialEq + Clone> Eq for AvlTree<T>
[src]
impl<T: PartialEq + Ord + Debug + Eq + Clone> PartialEq<AvlTree<T>> for AvlTree<T>
[src]
impl<T: Ord + Debug + PartialEq + Eq + Clone> StructuralEq for AvlTree<T>
[src]
impl<T: Ord + Debug + PartialEq + Eq + Clone> StructuralPartialEq for AvlTree<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for AvlTree<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for AvlTree<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for AvlTree<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for AvlTree<T>
[src]
impl<T> UnwindSafe for AvlTree<T> where
T: UnwindSafe,
[src]
T: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,