NeverEqual

Struct NeverEqual 

Source
pub struct NeverEqual<F, T> { /* private fields */ }

Implementations§

Source§

impl<F, T> NeverEqual<F, T>

Source

pub fn new(f: F) -> Self

Trait Implementations§

Source§

impl<F, T> Clone for NeverEqual<F, T>
where F: Clone,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de, F, T> Deserialize<'de> for NeverEqual<F, T>
where F: Deserialize<'de>,

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<F, T> Fn<(&T, &T)> for NeverEqual<F, T>
where F: for<'a> Fn<(&'a T, &'a T), Output = Ordering>,

Source§

fn call(&self, args: (&T, &T)) -> Self::Output

Performs the call operation.
Source§

impl<F, T> FnMut<(&T, &T)> for NeverEqual<F, T>
where F: for<'a> Fn<(&'a T, &'a T), Output = Ordering>,

Source§

fn call_mut(&mut self, args: (&T, &T)) -> Self::Output

Performs the call operation.
Source§

impl<F, T> FnOnce<(&T, &T)> for NeverEqual<F, T>
where F: for<'a> Fn<(&'a T, &'a T), Output = Ordering>,

Source§

type Output = Ordering

The returned type after the call operator is used.
Source§

fn call_once(self, args: (&T, &T)) -> Self::Output

Performs the call operation.
Source§

impl<F, T> Serialize for NeverEqual<F, T>
where F: Serialize,

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<F, T> Freeze for NeverEqual<F, T>
where F: Freeze,

§

impl<F, T> RefUnwindSafe for NeverEqual<F, T>
where F: RefUnwindSafe,

§

impl<F, T> Send for NeverEqual<F, T>
where F: Send,

§

impl<F, T> Sync for NeverEqual<F, T>
where F: Sync,

§

impl<F, T> Unpin for NeverEqual<F, T>
where F: Unpin,

§

impl<F, T> UnwindSafe for NeverEqual<F, T>
where F: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<A, F> FnOnceBox<A> for F
where F: FnOnce<A>,

Source§

type Output = <F as FnOnce<A>>::Output

The returned type after the call operator is used.
Source§

fn call_once_box(self: Box<F>, args: A) -> <F as FnOnce<A>>::Output

Performs the call operation on a Box<dyn FnOnceBox(…) -> …>.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,