Struct prop::qubit::Qubit

source ·
pub struct Qubit<N, A>(_, _);
Expand description

Represents a recursive qubit proposition.

Implementations§

source§

impl<A: Prop> Qubit<Z, A>

source

pub fn to(self) -> A

Get proposition.

source

pub fn from(a: A) -> Self

From proposition.

source§

impl<A: Prop> Qubit<S<Z>, A>

source

pub fn to_q(self) -> Q<A, A>

Convert to self-quality.

source

pub fn from_q((_, (x, _)): Q<A, A>) -> Self

Convert from self-quality.

source§

impl<A: Prop> Qubit<S<Z>, Not<A>>

source

pub fn to_aq(self) -> Aq<A, A>

Convert to self-quality.

source

pub fn from_aq((_, (x, _)): Aq<A, A>) -> Self

Convert from self-quality.

Trait Implementations§

source§

impl<N: Clone, A: Clone> Clone for Qubit<N, A>

source§

fn clone(&self) -> Qubit<N, A>

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<N: Copy, A: Copy> Copy for Qubit<N, A>

source§

impl<A, B> POrd<Qubit<S<Z>, B>> for Qu<A>where A: POrd<B>,

Auto Trait Implementations§

§

impl<N, A> RefUnwindSafe for Qubit<N, A>where A: RefUnwindSafe, N: RefUnwindSafe,

§

impl<N, A> Send for Qubit<N, A>where A: Send, N: Send,

§

impl<N, A> Sync for Qubit<N, A>where A: Sync, N: Sync,

§

impl<N, A> Unpin for Qubit<N, A>where A: Unpin, N: Unpin,

§

impl<N, A> UnwindSafe for Qubit<N, A>where A: UnwindSafe, N: 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> DProp for Twhere T: Decidable,

source§

impl<T, U> Lt<S<U>> for Twhere T: Lt<U>,