pub struct SortedPair<const ALLOW_DUPLICATES: bool>;
Expand description
Pair guaranteed to be sorted left-to-right (optionally permitted to be equal).
Trait Implementations§
Source§impl<const ALLOW_DUPLICATES: bool> Clone for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Clone for SortedPair<ALLOW_DUPLICATES>
Source§fn clone(&self) -> SortedPair<ALLOW_DUPLICATES>
fn clone(&self) -> SortedPair<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<const ALLOW_DUPLICATES: bool> Debug for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Debug for SortedPair<ALLOW_DUPLICATES>
Source§impl<const ALLOW_DUPLICATES: bool> Hash for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Hash for SortedPair<ALLOW_DUPLICATES>
Source§impl<const ALLOW_DUPLICATES: bool> Ord for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Ord for SortedPair<ALLOW_DUPLICATES>
Source§fn cmp(&self, other: &SortedPair<ALLOW_DUPLICATES>) -> Ordering
fn cmp(&self, other: &SortedPair<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<const ALLOW_DUPLICATES: bool> PartialEq for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> PartialEq for SortedPair<ALLOW_DUPLICATES>
Source§fn eq(&self, other: &SortedPair<ALLOW_DUPLICATES>) -> bool
fn eq(&self, other: &SortedPair<ALLOW_DUPLICATES>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<const ALLOW_DUPLICATES: bool> PartialOrd for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> PartialOrd for SortedPair<ALLOW_DUPLICATES>
Source§impl<const ALLOW_DUPLICATES: bool, Input: PartialOrd> Test<Input, 2> for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool, Input: PartialOrd> Test<Input, 2> for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Copy for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Eq for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> StructuralPartialEq for SortedPair<ALLOW_DUPLICATES>
Auto Trait Implementations§
impl<const ALLOW_DUPLICATES: bool> Freeze for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> RefUnwindSafe for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Send for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Sync for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> Unpin for SortedPair<ALLOW_DUPLICATES>
impl<const ALLOW_DUPLICATES: bool> UnwindSafe for SortedPair<ALLOW_DUPLICATES>
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