[][src]Enum chalk_ir::QuantifierKind

pub enum QuantifierKind {
    ForAll,
    Exists,
}

Kinds of quantifiers in the logic, such as forall and exists.

Variants

ForAll

Universal quantifier ForAll.

A formula with the universal quantifier forall(x). P(x) is satisfiable if and only if the subformula P(x) is true for all possible values for x.

Exists

Existential quantifier Exists.

A formula with the existential quantifier exists(x). P(x) is satisfiable if and only if there exists at least one value for all possible values of x which satisfies the subformula P(x). In the context of chalk, the existential quantifier usually demands the existence of exactly one instance (i.e. type) that satisfies the formula (i.e. type constraints). More than one instance means that the result is ambiguous.

Trait Implementations

impl Clone for QuantifierKind[src]

impl Copy for QuantifierKind[src]

impl Debug for QuantifierKind[src]

impl Eq for QuantifierKind[src]

impl<I: Interner, TI: TargetInterner<I>> Fold<I, TI> for QuantifierKind[src]

type Result = Self

The type of value that will be produced once folding is done. Typically this is Self, unless Self contains borrowed values, in which case owned values are produced (for example, one can fold over a &T value where T: Fold, in which case you get back a T, not a &T). Read more

impl Hash for QuantifierKind[src]

impl Ord for QuantifierKind[src]

impl PartialEq<QuantifierKind> for QuantifierKind[src]

impl PartialOrd<QuantifierKind> for QuantifierKind[src]

impl StructuralEq for QuantifierKind[src]

impl StructuralPartialEq for QuantifierKind[src]

impl<I: Interner> Visit<I> for QuantifierKind[src]

impl<I: Interner> Zip<I> for QuantifierKind[src]

Auto Trait Implementations

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> Cast for T[src]

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

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

impl<T, I> Shift<I> for T where
    I: Interner,
    T: Fold<I, I>, 
[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.

impl<T, I> VisitExt<I> for T where
    I: Interner,
    T: Visit<I>, 
[src]