Struct lz_diet::Diet
[−]
[src]
pub struct Diet<T> { /* fields omitted */ }
Methods
impl<T> Diet<T>
[src]
fn new() -> Self
fn iter(&self) -> Iter<T>
fn clear(&mut self)
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn contains<Q: ?Sized>(&self, value: &Q) -> bool where
T: Borrow<Q>,
Q: Ord,
T: Borrow<Q>,
Q: Ord,
impl<T: AdjacentBound> Diet<T>
[src]
fn insert(&mut self, value: T) -> bool
fn remove<Q: ?Sized>(&mut self, value: Cow<Q>) -> bool where
T: Borrow<Q>,
Q: Ord + ToOwned<Owned = T> + AdjacentBound,
T: Borrow<Q>,
Q: Ord + ToOwned<Owned = T> + AdjacentBound,
fn split<Q: ?Sized>(self, value: Cow<Q>) -> (Diet<T>, Diet<T>) where
T: Borrow<Q>,
Q: Ord + ToOwned<Owned = T> + AdjacentBound,
T: Borrow<Q>,
Q: Ord + ToOwned<Owned = T> + AdjacentBound,
impl<T: AdjacentBound + Clone> Diet<T>
[src]
fn extend_from_slice(&mut self, other: &[T])
Trait Implementations
impl<T: Debug> Debug for Diet<T>
[src]
impl<T: Clone> Clone for Diet<T>
[src]
fn clone(&self) -> Diet<T>
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
impl<T: Eq> Eq for Diet<T>
[src]
impl<T> Drop for Diet<T>
[src]
impl<A: AdjacentBound> FromIterator<A> for Diet<A>
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = A>,
T: IntoIterator<Item = A>,
Creates a value from an iterator. Read more
impl<T> BinaryTree for Diet<T>
[src]
impl<T: PartialEq> PartialEq for Diet<T>
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T: Hash> Hash for Diet<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a, T> IntoIterator for &'a Diet<T>
[src]
type Item = &'a Interval<T>
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<T> IntoIterator for Diet<T>
[src]
type Item = Interval<T>
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more