Struct prop::nat::S

source ·
pub struct S<T>(pub T);
Expand description

Successor.

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: Clone> Clone for S<T>

source§

fn clone(&self) -> S<T>

Returns a copy 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: Nat> Dec for S<T>

§

type Out = T

The output type.
source§

impl<T: Default> Default for S<T>

source§

fn default() -> Self

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

impl<X: HLev> HLev for S<X>

§

type Out<A: Prop, B: Prop> = ((Rc<dyn Fn(Qubit<X, A>) -> Qubit<X, B>>, Rc<dyn Fn(Qubit<X, B>) -> Qubit<X, A>>), <X as HLev>::Out<A, B>)

The output type.
source§

impl<A, B, C, D> Lookup<S<S<S<Z>>>> for (A, B, C, D)

§

type Out = D

The output type.
source§

impl<A, B, C, D> Lookup<S<S<Z>>> for (A, B, C, D)

§

type Out = C

The output type.
source§

impl<A, B, C, D> Lookup<S<Z>> for (A, B, C, D)

§

type Out = B

The output type.
source§

impl<N: Nat> QuHLev for S<N>

§

type Out<A: Prop> = Qubit<N, A>

The resulting type.
source§

impl<T: Copy> Copy for S<T>

source§

impl<T> Lt<S<S<T>>> for S<T>

source§

impl<T> Lt<S<T>> for Z

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for S<T>where T: RefUnwindSafe,

§

impl<T> Send for S<T>where T: Send,

§

impl<T> Sync for S<T>where T: Sync,

§

impl<T> Unpin for S<T>where T: Unpin,

§

impl<T> UnwindSafe for S<T>where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> Prop for Twhere T: 'static + Clone,

source§

fn double_neg(self) -> Dneg<Self>

Get double negation rule from proof.
source§

fn map_any<T>(self) -> Imply<T, Self>

Maps anything into itself.
source§

fn nnexcm() -> Not<Not<ExcM<Self>>>

Double negated excluded middle.
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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<T, U> Lt<S<U>> for Twhere T: Lt<U>,

source§

impl<T> Nat for Twhere T: Prop + Lt<S<T>> + Dec + Default,