Skip to main content

HornClause

Struct HornClause 

Source
struct HornClause<'a, T: Types> {
    vars: Vec<(&'a T::Var, &'a Sort<T>)>,
    guards: Vec<&'a Pred<T>>,
    head: &'a Pred<T>,
}
Expand description

A flattened Horn clause extracted from the constraint tree.

Fields§

§vars: Vec<(&'a T::Var, &'a Sort<T>)>

Universally quantified variables with their sorts

§guards: Vec<&'a Pred<T>>

Guard predicates (body of the implication)

§head: &'a Pred<T>

Head of the clause

Auto Trait Implementations§

§

impl<'a, T> DynSend for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: DynSend, Vec<&'a Pred<T>>: DynSend, &'a Pred<T>: DynSend,

§

impl<'a, T> DynSync for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: DynSync, Vec<&'a Pred<T>>: DynSync, &'a Pred<T>: DynSync,

§

impl<'a, T> Freeze for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: Freeze, Vec<&'a Pred<T>>: Freeze, &'a Pred<T>: Freeze,

§

impl<'a, T> RefUnwindSafe for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: RefUnwindSafe, Vec<&'a Pred<T>>: RefUnwindSafe, &'a Pred<T>: RefUnwindSafe,

§

impl<'a, T> Send for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: Send, Vec<&'a Pred<T>>: Send, &'a Pred<T>: Send,

§

impl<'a, T> Sync for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: Sync, Vec<&'a Pred<T>>: Sync, &'a Pred<T>: Sync,

§

impl<'a, T> Unpin for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: Unpin, Vec<&'a Pred<T>>: Unpin, &'a Pred<T>: Unpin,

§

impl<'a, T> UnsafeUnpin for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: UnsafeUnpin, Vec<&'a Pred<T>>: UnsafeUnpin, &'a Pred<T>: UnsafeUnpin,

§

impl<'a, T> UnwindSafe for HornClause<'a, T>
where Vec<(&'a <T as Types>::Var, &'a Sort<T>)>: UnwindSafe, Vec<&'a Pred<T>>: UnwindSafe, &'a Pred<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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.