Struct Equal

pub struct Equal;

A potential output from Cmp, this is the type equivalent to the enum variant core::cmp::Ordering::Equal.

Trait Implementations

impl Clone for Equal

fn clone(&self) -> Self

impl Copy for Equal

impl Debug for Equal

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

impl Default for Equal

fn default() -> Self

impl Eq for Equal

impl Hash for Equal

fn hash<__H: Hasher>(&self, state: &mut __H)

impl Ord for Equal

fn cmp(&self, other: &Self) -> Ordering

impl Ord for Equal

fn to_ordering() -> Ordering

impl PartialEq for Equal

fn eq(&self, other: &Self) -> bool

impl PartialOrd for Equal

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

impl StructuralPartialEq for Equal

Auto Trait Implementations

impl Freeze for Equal

impl RefUnwindSafe for Equal

impl Send for Equal

impl Sync for Equal

impl Unpin for Equal

impl UnsafeUnpin for Equal

impl UnwindSafe for Equal

Blanket Implementations

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Equal where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Equal where T: ?Sized,

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

impl<T> CloneToUninit for Equal where T: Clone,

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

impl<T> From<T> for Equal

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for Equal

type Output = T;

impl<T, U> Into<U> for Equal 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 Equal where U: Into<T>,

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

impl<T, U> TryInto<U> for Equal where U: TryFrom<T>,

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