[−][src]Enum exprz_core::Expr
Canonical Concrete Expression Type
Variants
Atom(E::Atom)Atomic element
Group(E::Group)Grouped expression
Implementations
impl<E> Expr<E> where
E: Expression, [src]
E: Expression,
#[must_use]pub fn is_atom(&self) -> bool[src]
Check if the Expr is atomic.
#[must_use]pub fn is_group(&self) -> bool[src]
Check if the Expr is a grouped expression.
#[must_use]pub fn atom(self) -> Option<E::Atom>[src]
Converts from an Expr<E> to an Option<E::Atom>.
#[must_use]pub fn group(self) -> Option<E::Group>[src]
Converts from an Expr<E> to an Option<E::Group>.
pub fn unwrap_atom(self) -> E::Atom[src]
Returns the contained Atom value, consuming the self value.
pub fn unwrap_group(self) -> E::Group[src]
Returns the contained Group value, consuming the self value.
Trait Implementations
impl<E: Clone> Clone for Expr<E> where
E: Expression,
E::Atom: Clone,
E::Group: Clone, [src]
E: Expression,
E::Atom: Clone,
E::Group: Clone,
fn clone(&self) -> Expr<E>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<E: Copy> Copy for Expr<E> where
E: Expression,
E::Atom: Copy,
E::Group: Copy, [src]
E: Expression,
E::Atom: Copy,
E::Group: Copy,
impl<E: Debug> Debug for Expr<E> where
E: Expression,
E::Atom: Debug,
E::Group: Debug, [src]
E: Expression,
E::Atom: Debug,
E::Group: Debug,
impl<E: Eq> Eq for Expr<E> where
E: Expression,
E::Atom: Eq,
E::Group: Eq, [src]
E: Expression,
E::Atom: Eq,
E::Group: Eq,
impl<E> Expression for Expr<E> where
E: Expression, [src]
E: Expression,
type Atom = E::Atom
Atomic element type
type Group = E::Group
Group expression type
fn cases(&self) -> ExprRef<'_, Self>[src]
fn from_atom(atom: Self::Atom) -> Self[src]
fn from_group(group: Self::Group) -> Self[src]
fn from_expr(expr: Expr<Self>) -> Self[src]
#[must_use]fn is_atom(&self) -> bool[src]
#[must_use]fn is_group(&self) -> bool[src]
#[must_use]fn atom(self) -> Option<Self::Atom>[src]
#[must_use]fn group(self) -> Option<Self::Group>[src]
fn unwrap_atom(self) -> Self::Atom[src]
fn unwrap_group(self) -> Self::Group[src]
fn clone(&self) -> Self where
Self::Atom: Clone,
Self::Group: FromIterator<Self>, [src]
Self::Atom: Clone,
Self::Group: FromIterator<Self>,
fn eq<E>(&self, other: &E) -> bool where
E: Expression,
Self::Atom: PartialEq<E::Atom>, [src]
E: Expression,
Self::Atom: PartialEq<E::Atom>,
fn is_subexpression<E>(&self, other: &E) -> bool where
E: Expression,
Self::Atom: PartialEq<E::Atom>, [src]
E: Expression,
Self::Atom: PartialEq<E::Atom>,
fn map<E, F>(self, f: &mut F) -> E where
E: Expression,
E::Group: FromIterator<E>,
F: FnMut(Self::Atom) -> E::Atom, [src]
E: Expression,
E::Group: FromIterator<E>,
F: FnMut(Self::Atom) -> E::Atom,
fn map_ref<E, F>(&self, f: &mut F) -> E where
E: Expression,
E::Group: FromIterator<E>,
F: FnMut(&Self::Atom) -> E::Atom, [src]
E: Expression,
E::Group: FromIterator<E>,
F: FnMut(&Self::Atom) -> E::Atom,
fn substitute<F>(self, f: &mut F) -> Self where
Self::Group: FromIterator<Self>,
F: FnMut(Self::Atom) -> Self, [src]
Self::Group: FromIterator<Self>,
F: FnMut(Self::Atom) -> Self,
fn substitute_from_iter<'s, I>(self, iter: &I) -> Self where
Self::Atom: 's + PartialEq,
Self::Group: FromIterator<Self>,
I: IteratorGen<(&'s Self::Atom, Self)>, [src]
Self::Atom: 's + PartialEq,
Self::Group: FromIterator<Self>,
I: IteratorGen<(&'s Self::Atom, Self)>,
fn substitute_ref<F>(&self, f: &mut F) -> Self where
Self::Group: FromIterator<Self>,
F: FnMut(&Self::Atom) -> Self, [src]
Self::Group: FromIterator<Self>,
F: FnMut(&Self::Atom) -> Self,
fn substitute_ref_from_iter<'s, I>(&self, iter: &I) -> Self where
Self: 's,
Self::Atom: PartialEq + Clone,
Self::Group: FromIterator<Self>,
I: IteratorGen<(&'s Self::Atom, &'s Self)>, [src]
Self: 's,
Self::Atom: PartialEq + Clone,
Self::Group: FromIterator<Self>,
I: IteratorGen<(&'s Self::Atom, &'s Self)>,
impl<E> From<E> for Expr<E> where
E: Expression, [src]
E: Expression,
impl<'e, E> From<ExprRef<'e, E>> for Expr<E> where
E::Atom: Clone,
E::Group: FromIterator<E>,
E: Expression, [src]
E::Atom: Clone,
E::Group: FromIterator<E>,
E: Expression,
impl<E: Hash> Hash for Expr<E> where
E: Expression,
E::Atom: Hash,
E::Group: Hash, [src]
E: Expression,
E::Atom: Hash,
E::Group: Hash,
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<E> IntoIteratorGen<Expr<E>> for E::Group where
E: Expression, [src]
E: Expression,
type IterGen = ExprIterContainer<E>
Underlying IteratorGen Type
fn gen(&self) -> Self::IterGen[src]
fn new_iter(&self) -> <Self::IterGen as IteratorGen<T>>::Iter[src]
impl<E> IteratorGen<Expr<E>> for ExprIterContainer<E> where
E: Expression, [src]
E: Expression,
impl<E: Ord> Ord for Expr<E> where
E: Expression,
E::Atom: Ord,
E::Group: Ord, [src]
E: Expression,
E::Atom: Ord,
E::Group: Ord,
fn cmp(&self, other: &Expr<E>) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<E: PartialEq> PartialEq<Expr<E>> for Expr<E> where
E: Expression,
E::Atom: PartialEq,
E::Group: PartialEq, [src]
E: Expression,
E::Atom: PartialEq,
E::Group: PartialEq,
impl<E: PartialOrd> PartialOrd<Expr<E>> for Expr<E> where
E: Expression,
E::Atom: PartialOrd,
E::Group: PartialOrd, [src]
E: Expression,
E::Atom: PartialOrd,
E::Group: PartialOrd,
fn partial_cmp(&self, other: &Expr<E>) -> Option<Ordering>[src]
fn lt(&self, other: &Expr<E>) -> bool[src]
fn le(&self, other: &Expr<E>) -> bool[src]
fn gt(&self, other: &Expr<E>) -> bool[src]
fn ge(&self, other: &Expr<E>) -> bool[src]
impl<E> StructuralEq for Expr<E> where
E: Expression, [src]
E: Expression,
impl<E> StructuralPartialEq for Expr<E> where
E: Expression, [src]
E: Expression,
Auto Trait Implementations
impl<E> Send for Expr<E> where
<E as Expression>::Atom: Send,
<E as Expression>::Group: Send,
<E as Expression>::Atom: Send,
<E as Expression>::Group: Send,
impl<E> Sync for Expr<E> where
<E as Expression>::Atom: Sync,
<E as Expression>::Group: Sync,
<E as Expression>::Atom: Sync,
<E as Expression>::Group: Sync,
impl<E> Unpin for Expr<E> where
<E as Expression>::Atom: Unpin,
<E as Expression>::Group: Unpin,
<E as Expression>::Atom: Unpin,
<E as Expression>::Group: Unpin,
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<!> for 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, 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>,