pub struct AllEqualValueError<Item>(pub Option<[Item; 2]>);Expand description
Value returned for the error case of Itertools::all_equal_value.
Tuple Fields§
§0: Option<[Item; 2]>Trait Implementations§
Source§impl<Item: Clone> Clone for AllEqualValueError<Item>
impl<Item: Clone> Clone for AllEqualValueError<Item>
Source§fn clone(&self) -> AllEqualValueError<Item>
fn clone(&self) -> AllEqualValueError<Item>
Returns a duplicate 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<Item: Debug> Debug for AllEqualValueError<Item>
impl<Item: Debug> Debug for AllEqualValueError<Item>
Source§impl<Item> Display for AllEqualValueError<Item>
impl<Item> Display for AllEqualValueError<Item>
Source§impl<Item> Error for AllEqualValueError<Item>where
Item: Debug,
Available on crate feature use_std only.
impl<Item> Error for AllEqualValueError<Item>where
Item: Debug,
Available on crate feature
use_std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<Item: Ord> Ord for AllEqualValueError<Item>
impl<Item: Ord> Ord for AllEqualValueError<Item>
Source§fn cmp(&self, other: &AllEqualValueError<Item>) -> Ordering
fn cmp(&self, other: &AllEqualValueError<Item>) -> 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<Item: PartialEq> PartialEq for AllEqualValueError<Item>
impl<Item: PartialEq> PartialEq for AllEqualValueError<Item>
Source§impl<Item: PartialOrd> PartialOrd for AllEqualValueError<Item>
impl<Item: PartialOrd> PartialOrd for AllEqualValueError<Item>
impl<Item: Eq> Eq for AllEqualValueError<Item>
impl<Item> StructuralPartialEq for AllEqualValueError<Item>
Auto Trait Implementations§
impl<Item> Freeze for AllEqualValueError<Item>where
Item: Freeze,
impl<Item> RefUnwindSafe for AllEqualValueError<Item>where
Item: RefUnwindSafe,
impl<Item> Send for AllEqualValueError<Item>where
Item: Send,
impl<Item> Sync for AllEqualValueError<Item>where
Item: Sync,
impl<Item> Unpin for AllEqualValueError<Item>where
Item: Unpin,
impl<Item> UnsafeUnpin for AllEqualValueError<Item>where
Item: UnsafeUnpin,
impl<Item> UnwindSafe for AllEqualValueError<Item>where
Item: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more