[][src]Enum proto_vulcan::state::constraint::Constraint

pub enum Constraint<U: UserState> {
    Tree(Rc<dyn TreeConstraint<U>>),
    FiniteDomain(Rc<dyn FiniteDomainConstraint<U>>),
    Z(Rc<dyn ZConstraint<U>>),
    User(Rc<dyn UserConstraint<U>>),
}

Variants

Tree(Rc<dyn TreeConstraint<U>>)
FiniteDomain(Rc<dyn FiniteDomainConstraint<U>>)
Z(Rc<dyn ZConstraint<U>>)
User(Rc<dyn UserConstraint<U>>)

Implementations

impl<U: UserState> Constraint<U>[src]

pub fn is_tree(&self) -> bool[src]

pub fn is_finite_domain(&self) -> bool[src]

pub fn is_user(&self) -> bool[src]

pub fn run(self, state: State<U>) -> SResult<U>[src]

pub fn operands(&self) -> Vec<&Rc<LTerm>>[src]

Get list of operands

pub fn reify(&self, state: &mut State<U>)[src]

Trait Implementations

impl<U: Clone + UserState> Clone for Constraint<U>[src]

impl<U: Debug + UserState> Debug for Constraint<U>[src]

impl<U: UserState> Display for Constraint<U>[src]

impl<U: UserState> Eq for Constraint<U>[src]

impl<U: UserState> From<Rc<DiseqFdConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<DisequalityConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<DistinctFd2Constraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<DistinctFdConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<LessThanOrEqualFdConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<MinusFdConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<PlusFdConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<PlusZConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<TimesFdConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<TimesZConstraint>> for Constraint<U>[src]

impl<U: UserState> From<Rc<dyn FiniteDomainConstraint<U> + 'static>> for Constraint<U>[src]

impl<U: UserState> From<Rc<dyn TreeConstraint<U> + 'static>> for Constraint<U>[src]

impl<U: UserState> From<Rc<dyn UserConstraint<U> + 'static>> for Constraint<U>[src]

impl<U: UserState> From<Rc<dyn ZConstraint<U> + 'static>> for Constraint<U>[src]

impl<U: UserState> Hash for Constraint<U>[src]

impl<U: UserState> PartialEq<Constraint<U>> for Constraint<U>[src]

Auto Trait Implementations

impl<U> !RefUnwindSafe for Constraint<U>

impl<U> !Send for Constraint<U>

impl<U> !Sync for Constraint<U>

impl<U> Unpin for Constraint<U>

impl<U> !UnwindSafe for Constraint<U>

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.