[−][src]Enum avalog::Expr
Represents an expression.
Variants
A symbol.
A relation between two symbols.
A 1-avatar of some expression.
Unwraps 1-avatar.
A 1-avatar q'(b)
such that p(a) = q'(b)
.
A role of expression.
An equality, e.g. p(a) = b
.
An inequality, e.g. X != a
.
A set membership relation, e.g. p(a) ∋ b
.
Apply an argument to a role, e.g. p(a)
.
There is an ambiguous role.
There is an ambiguous relation.
Defines a rule.
Ambiguity(bool)
Ambiguity summary.
This is true
when some ambiguity is found,
and false
when no ambiguity is found.
Represents the tail of an argument list ..
.
Represents the tail of an argument list bound a symbol ..x
.
Represents a list.
Implementations
impl Expr
[src]
pub fn eval_lift(&self, eval: &Arc<String>, top: bool) -> Expr
[src]
Lifts apply with an eval role.
pub fn is_const(&self) -> bool
[src]
Returns true
if expression contains no variables.
pub fn is_tail(&self) -> bool
[src]
Returns true
if expression is a tail pattern.
pub fn arity(&self) -> usize
[src]
Returns the number of arguments in apply expression.
Trait Implementations
impl Clone for Expr
[src]
impl Debug for Expr
[src]
impl Display for Expr
[src]
impl Eq for Expr
[src]
impl From<&'static str> for Expr
[src]
impl Hash for Expr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Expr
[src]
fn cmp(&self, other: &Expr) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Expr> for Expr
[src]
impl PartialOrd<Expr> for Expr
[src]
fn partial_cmp(&self, other: &Expr) -> Option<Ordering>
[src]
fn lt(&self, other: &Expr) -> bool
[src]
fn le(&self, other: &Expr) -> bool
[src]
fn gt(&self, other: &Expr) -> bool
[src]
fn ge(&self, other: &Expr) -> bool
[src]
impl StructuralEq for Expr
[src]
impl StructuralPartialEq for Expr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,