Struct starlark_map::sorted_vec::SortedVec
source · pub struct SortedVec<T> { /* private fields */ }
Expand description
Type which enfoces that its elements are sorted. That’s it.
Implementations§
Trait Implementations§
source§impl<T: Allocative> Allocative for SortedVec<T>
impl<T: Allocative> Allocative for SortedVec<T>
source§impl<T: Ord> FromIterator<T> for SortedVec<T>
impl<T: Ord> FromIterator<T> for SortedVec<T>
source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl<T> IntoIterator for SortedVec<T>
impl<T> IntoIterator for SortedVec<T>
source§impl<T: Ord> Ord for SortedVec<T>
impl<T: Ord> Ord for SortedVec<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for SortedVec<T>
impl<T: PartialEq> PartialEq for SortedVec<T>
source§impl<T: PartialOrd> PartialOrd for SortedVec<T>
impl<T: PartialOrd> PartialOrd for SortedVec<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq> Eq for SortedVec<T>
impl<T> StructuralPartialEq for SortedVec<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SortedVec<T>where
T: RefUnwindSafe,
impl<T> Send for SortedVec<T>where
T: Send,
impl<T> Sync for SortedVec<T>where
T: Sync,
impl<T> Unpin for SortedVec<T>where
T: Unpin,
impl<T> UnwindSafe for SortedVec<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.