pub struct SortedInvariant<Iter: Debug, const ALLOW_DUPLICATES: bool>(/* private fields */)
where
for<'i> &'i Iter: IntoIterator,
for<'i> <&'i Iter as IntoIterator>::Item: Debug + PartialOrd;Expand description
Ensure that an iterable data structure is sorted (optionally with or without duplicates).
Trait Implementations§
Source§impl<Iter: Clone + Debug, const ALLOW_DUPLICATES: bool> Clone for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Clone + Debug, const ALLOW_DUPLICATES: bool> Clone for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§fn clone(&self) -> SortedInvariant<Iter, ALLOW_DUPLICATES>
fn clone(&self) -> SortedInvariant<Iter, ALLOW_DUPLICATES>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Iter: Debug + Debug, const ALLOW_DUPLICATES: bool> Debug for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Debug + Debug, const ALLOW_DUPLICATES: bool> Debug for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§impl<Iter: Debug, const ALLOW_DUPLICATES: bool> Default for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Debug, const ALLOW_DUPLICATES: bool> Default for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§impl<Iter: Hash + Debug, const ALLOW_DUPLICATES: bool> Hash for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Hash + Debug, const ALLOW_DUPLICATES: bool> Hash for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§impl<Iter: Ord + Debug, const ALLOW_DUPLICATES: bool> Ord for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Ord + Debug, const ALLOW_DUPLICATES: bool> Ord for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§fn cmp(&self, other: &SortedInvariant<Iter, ALLOW_DUPLICATES>) -> Ordering
fn cmp(&self, other: &SortedInvariant<Iter, ALLOW_DUPLICATES>) -> Ordering
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<Iter: PartialEq + Debug, const ALLOW_DUPLICATES: bool> PartialEq for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: PartialEq + Debug, const ALLOW_DUPLICATES: bool> PartialEq for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§fn eq(&self, other: &SortedInvariant<Iter, ALLOW_DUPLICATES>) -> bool
fn eq(&self, other: &SortedInvariant<Iter, ALLOW_DUPLICATES>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<Iter: PartialOrd + Debug, const ALLOW_DUPLICATES: bool> PartialOrd for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: PartialOrd + Debug, const ALLOW_DUPLICATES: bool> PartialOrd for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§impl<Iter: Debug, const ALLOW_DUPLICATES: bool> Test<Iter> for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Debug, const ALLOW_DUPLICATES: bool> Test<Iter> for SortedInvariant<Iter, ALLOW_DUPLICATES>
Source§const ADJECTIVE: &'static str = "sorted"
const ADJECTIVE: &'static str = "sorted"
Adjective to describe this test:
for example, if we’re testing A,
then this is B in “A is not B.”
Source§type Error<'input> = OutOfOrder<<&'input Iter as IntoIterator>::Item>
where
Iter: 'input
type Error<'input> = OutOfOrder<<&'input Iter as IntoIterator>::Item> where Iter: 'input
An error implementing
::core::fmt::Display.
If none is ever provided, please use ::core::convert::Infallible.impl<Iter: Copy + Debug, const ALLOW_DUPLICATES: bool> Copy for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Eq + Debug, const ALLOW_DUPLICATES: bool> Eq for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter: Debug, const ALLOW_DUPLICATES: bool> StructuralPartialEq for SortedInvariant<Iter, ALLOW_DUPLICATES>
Auto Trait Implementations§
impl<Iter, const ALLOW_DUPLICATES: bool> Freeze for SortedInvariant<Iter, ALLOW_DUPLICATES>
impl<Iter, const ALLOW_DUPLICATES: bool> RefUnwindSafe for SortedInvariant<Iter, ALLOW_DUPLICATES>where
Iter: RefUnwindSafe,
impl<Iter, const ALLOW_DUPLICATES: bool> Send for SortedInvariant<Iter, ALLOW_DUPLICATES>where
Iter: Send,
impl<Iter, const ALLOW_DUPLICATES: bool> Sync for SortedInvariant<Iter, ALLOW_DUPLICATES>where
Iter: Sync,
impl<Iter, const ALLOW_DUPLICATES: bool> Unpin for SortedInvariant<Iter, ALLOW_DUPLICATES>where
Iter: Unpin,
impl<Iter, const ALLOW_DUPLICATES: bool> UnwindSafe for SortedInvariant<Iter, ALLOW_DUPLICATES>where
Iter: 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