Struct Even

Source
pub struct Even<T, I = ()> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Clone, I: Clone> Clone for Even<T, I>

Source§

fn clone(&self) -> Even<T, I>

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<T, I, I2> Constrain<I2> for Even<T, I>

Source§

type Lift = Even<T, I2>

Source§

fn i_force(&self, i: I2) -> Self::Lift

Override input constraint even when existential path does not exist.
Source§

fn i(&self, i: I) -> Self::Lift
where Self::Lift: ExPath,

Constrains input but only if an existential path is supported for the constraint.
Source§

impl<T: Debug, I: Debug> Debug for Even<T, I>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T: Default, I: Default> Default for Even<T, I>

Source§

fn default() -> Even<T, I>

Returns the “default value” for a type. Read more
Source§

impl<T, I: TrickDisplay + 'static> Display for Even<T, I>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T> ExPath for Even<T>

Source§

impl<T: Clone> ExPath for Even<T, (Even<T>, Even<T>)>

Source§

type Lift = (<Even<T, Even<T>> as ExPath>::Lift, <Even<T, Even<T>> as ExPath>::Lift)

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl<T: Clone> ExPath for Even<T, (Even<T>, Odd<T>)>

Source§

type Lift = (<Even<T, Even<T>> as ExPath>::Lift, <Even<T, Odd<T>> as ExPath>::Lift)

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl<T: Clone> ExPath for Even<T, (Odd<T>, Even<T>)>

Source§

type Lift = (<Even<T, Odd<T>> as ExPath>::Lift, <Even<T, Even<T>> as ExPath>::Lift)

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl<T: Clone> ExPath for Even<T, (Odd<T>, Odd<T>)>

Source§

type Lift = (<Even<T, Odd<T>> as ExPath>::Lift, <Even<T, Odd<T>> as ExPath>::Lift)

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl<T> ExPath for Even<T, Even<T>>

Source§

type Lift = Id<bool>

Source§

fn ex_path(&self) -> Id<bool>

Source§

impl<T> ExPath for Even<T, Odd<T>>

Source§

type Lift = Not

Source§

fn ex_path(&self) -> Not

Source§

impl ExPath for Even<u16, EqK<u16>>

Source§

type Lift = IfK<u16, Even<u16>, Id<bool>, Not>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u16, GeK<u16>>

Source§

type Lift = IfK<u16, EqK<u16>, Not, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u16, If<LtK<u16>, False1<u16>, Even<u16>>>

Source§

type Lift = Id<bool>

Source§

fn ex_path(&self) -> Id<bool>

Source§

impl ExPath for Even<u16, LtK<u16>>

Source§

type Lift = IfK<u16, LtK<u16>, IfK<u16, EqK<u16>, False1<bool>, Id<bool>>, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u32, EqK<u32>>

Source§

type Lift = IfK<u32, Even<u32>, Id<bool>, Not>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u32, GeK<u32>>

Source§

type Lift = IfK<u32, EqK<u32>, Not, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u32, If<LtK<u32>, False1<u32>, Even<u32>>>

Source§

type Lift = Id<bool>

Source§

fn ex_path(&self) -> Id<bool>

Source§

impl ExPath for Even<u32, LtK<u32>>

Source§

type Lift = IfK<u32, LtK<u32>, IfK<u32, EqK<u32>, False1<bool>, Id<bool>>, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u64, EqK<u64>>

Source§

type Lift = IfK<u64, Even<u64>, Id<bool>, Not>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u64, GeK<u64>>

Source§

type Lift = IfK<u64, EqK<u64>, Not, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u64, If<LtK<u64>, False1<u64>, Even<u64>>>

Source§

type Lift = Id<bool>

Source§

fn ex_path(&self) -> Id<bool>

Source§

impl ExPath for Even<u64, LtK<u64>>

Source§

type Lift = IfK<u64, LtK<u64>, IfK<u64, EqK<u64>, False1<bool>, Id<bool>>, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u8, EqK<u8>>

Source§

type Lift = IfK<u8, Even<u8>, Id<bool>, Not>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u8, GeK<u8>>

Source§

type Lift = IfK<u8, EqK<u8>, Not, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl ExPath for Even<u8, If<LtK<u8>, False1<u8>, Even<u8>>>

Source§

type Lift = Id<bool>

Source§

fn ex_path(&self) -> Id<bool>

Source§

impl ExPath for Even<u8, LtK<u8>>

Source§

type Lift = IfK<u8, LtK<u8>, IfK<u8, EqK<u8>, False1<bool>, Id<bool>>, ()>

Source§

fn ex_path(&self) -> Self::Lift

Source§

impl<T: PartialEq, I: PartialEq> PartialEq for Even<T, I>

Source§

fn eq(&self, other: &Even<T, I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Clone> Path<Even<u16>> for Add<u16, T>
where Even<u16, T>: ExPath,

Source§

type Lift = Eq<bool, <<Even<u16> as Constrain<T>>::Lift as ExPath>::Lift>

Source§

fn path_force(&self, arg: Even<u16>) -> Self::Lift

Source§

fn path(&self, arg: T) -> <Self as Path<T>>::Lift
where <Self as Path<T>>::Lift: ExPath<Lift = <<T as Constrain<<Self as ExPath>::Lift>>::Lift as ExPath>::Lift>, T: Constrain<<Self as ExPath>::Lift>, <T as Constrain<<Self as ExPath>::Lift>>::Lift: ExPath, Self: ExPath,

Can call method if the existential paths of constrained input matches.
Source§

impl<T: Clone> Path<Even<u32>> for Add<u32, T>
where Even<u32, T>: ExPath,

Source§

type Lift = Eq<bool, <<Even<u32> as Constrain<T>>::Lift as ExPath>::Lift>

Source§

fn path_force(&self, arg: Even<u32>) -> Self::Lift

Source§

fn path(&self, arg: T) -> <Self as Path<T>>::Lift
where <Self as Path<T>>::Lift: ExPath<Lift = <<T as Constrain<<Self as ExPath>::Lift>>::Lift as ExPath>::Lift>, T: Constrain<<Self as ExPath>::Lift>, <T as Constrain<<Self as ExPath>::Lift>>::Lift: ExPath, Self: ExPath,

Can call method if the existential paths of constrained input matches.
Source§

impl<T: Clone> Path<Even<u64>> for Add<u64, T>
where Even<u64, T>: ExPath,

Source§

type Lift = Eq<bool, <<Even<u64> as Constrain<T>>::Lift as ExPath>::Lift>

Source§

fn path_force(&self, arg: Even<u64>) -> Self::Lift

Source§

fn path(&self, arg: T) -> <Self as Path<T>>::Lift
where <Self as Path<T>>::Lift: ExPath<Lift = <<T as Constrain<<Self as ExPath>::Lift>>::Lift as ExPath>::Lift>, T: Constrain<<Self as ExPath>::Lift>, <T as Constrain<<Self as ExPath>::Lift>>::Lift: ExPath, Self: ExPath,

Can call method if the existential paths of constrained input matches.
Source§

impl<T: Clone> Path<Even<u8>> for Add<u8, T>
where Even<u8, T>: ExPath,

Source§

type Lift = Eq<bool, <<Even<u8> as Constrain<T>>::Lift as ExPath>::Lift>

Source§

fn path_force(&self, arg: Even<u8>) -> Self::Lift

Source§

fn path(&self, arg: T) -> <Self as Path<T>>::Lift
where <Self as Path<T>>::Lift: ExPath<Lift = <<T as Constrain<<Self as ExPath>::Lift>>::Lift as ExPath>::Lift>, T: Constrain<<Self as ExPath>::Lift>, <T as Constrain<<Self as ExPath>::Lift>>::Lift: ExPath, Self: ExPath,

Can call method if the existential paths of constrained input matches.
Source§

impl<T: Copy, I: Copy> Copy for Even<T, I>

Source§

impl<T, I> StructuralPartialEq for Even<T, I>

Auto Trait Implementations§

§

impl<T, I> Freeze for Even<T, I>
where I: Freeze,

§

impl<T, I> RefUnwindSafe for Even<T, I>

§

impl<T, I> Send for Even<T, I>
where I: Send, T: Send,

§

impl<T, I> Sync for Even<T, I>
where I: Sync, T: Sync,

§

impl<T, I> Unpin for Even<T, I>
where I: Unpin, T: Unpin,

§

impl<T, I> UnwindSafe for Even<T, I>
where I: UnwindSafe, T: 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<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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.