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>
impl<'a, T> DynSync for HornClause<'a, T>
impl<'a, T> Freeze for HornClause<'a, T>
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>
impl<'a, T> Sync for HornClause<'a, T>
impl<'a, T> Unpin for HornClause<'a, T>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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