[][src]Struct pocket_prover_set::Set

pub struct Set {
    pub any: u64,
    pub uniq: u64,
    pub fin_many: u64,
    pub inf_many: u64,
}

Conditions that holds for a set in general.

Fields

any: u64

All types, including those who are not defined.

uniq: u64

A unique value.

fin_many: u64

Many but finite number of values.

inf_many: u64

Many but infinite number of values.

Implementations

impl Set[src]

pub fn rules(&self) -> u64[src]

Rules for sets.

pub fn none(&self) -> u64[src]

Returns whether the set is empty.

pub fn some(&self) -> u64[src]

Returns whether the set is non-empty.

pub fn undefined(&self) -> u64[src]

Returns whether the set is undefined. This can be a set of higher cardinality.

pub fn multiple(&self) -> u64[src]

Returns whether the set contains more than one. The set must be well defined.

pub fn count<F: Fn(Set) -> u64>(f: F) -> u32[src]

Counts the number of true cases.

Trait Implementations

impl Clone for Set[src]

impl Construct for Set[src]

impl Copy for Set[src]

impl CoreRules for Set[src]

impl ExtendRules for Set[src]

type Inner = ()

The inner logical system.

Auto Trait Implementations

impl RefUnwindSafe for Set

impl Send for Set

impl Sync for Set

impl Unpin for Set

impl UnwindSafe for Set

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ExtendRules for T where
    T: BaseSystem
[src]

type Inner = ()

The inner logical system.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Prove for T where
    T: Copy + Construct + ExtendRules
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.