Struct AllEqualValueError

pub struct AllEqualValueError<Item>(pub Option<[Item; 2]>);

Value returned for the error case of Itertools::all_equal_value.

Fields

0: Option<[Item; 2]>

Trait Implementations

impl<Item> Display for AllEqualValueError<Item>

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

impl<Item> Error for AllEqualValueError<Item> where Item: Debug,

impl<Item: Clone> Clone for AllEqualValueError<Item>

fn clone(&self) -> AllEqualValueError<Item>

impl<Item: Debug> Debug for AllEqualValueError<Item>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<Item: Eq> Eq for AllEqualValueError<Item>

impl<Item: Ord> Ord for AllEqualValueError<Item>

fn cmp(&self, other: &AllEqualValueError<Item>) -> Ordering

impl<Item: PartialEq> PartialEq for AllEqualValueError<Item>

fn eq(&self, other: &AllEqualValueError<Item>) -> bool

impl<Item: PartialEq> StructuralPartialEq for AllEqualValueError<Item>

impl<Item: PartialOrd> PartialOrd for AllEqualValueError<Item>

fn partial_cmp(&self, other: &AllEqualValueError<Item>) -> Option<Ordering>

Auto Trait Implementations

impl<Item> Freeze for AllEqualValueError<Item> where Option<[Item; 2]>: Freeze,

impl<Item> RefUnwindSafe for AllEqualValueError<Item> where Option<[Item; 2]>: RefUnwindSafe,

impl<Item> Send for AllEqualValueError<Item> where Option<[Item; 2]>: Send,

impl<Item> Sync for AllEqualValueError<Item> where Option<[Item; 2]>: Sync,

impl<Item> Unpin for AllEqualValueError<Item> where Option<[Item; 2]>: Unpin,

impl<Item> UnsafeUnpin for AllEqualValueError<Item> where Option<[Item; 2]>: UnsafeUnpin,

impl<Item> UnwindSafe for AllEqualValueError<Item> where Option<[Item; 2]>: UnwindSafe,

Blanket Implementations

impl<T> Any for AllEqualValueError<Item> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AllEqualValueError<Item> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AllEqualValueError<Item> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for AllEqualValueError<Item> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for AllEqualValueError<Item>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for AllEqualValueError<Item>

impl<T> ToOwned for AllEqualValueError<Item> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for AllEqualValueError<Item> where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for AllEqualValueError<Item> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for AllEqualValueError<Item> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for AllEqualValueError<Item> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>