[−][src]Enum exprz::vec::Expr
Vector Expression Type
Variants
Atomic expression
Group(Vec<Self>)Grouped expression
Trait Implementations
impl<A: Clone> Clone for Expr<A>[src]
impl<A: Debug> Debug for Expr<A>[src]
impl<A> Default for Expr<A>[src]
impl<A: Eq> Eq for Expr<A>[src]
impl<A> Expression for Expr<A>[src]
type Atom = A
Atomic Element Type
type Group = Vec<Self>
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]
#[must_use]fn from_expr(expr: Expr<Self>) -> Self[src]
fn from_str(s: &str) -> Result<Self, Error> where
Self::Atom: FromIterator<char>,
Self::Group: FromIterator<Self>, [src]
Self::Atom: FromIterator<char>,
Self::Group: FromIterator<Self>,
#[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 empty_atom<T>() -> Self where
Self::Atom: FromIterator<T>, [src]
Self::Atom: FromIterator<T>,
fn empty_group() -> Self where
Self::Group: FromIterator<Self>, [src]
Self::Group: FromIterator<Self>,
fn default() -> Self where
Self::Group: FromIterator<Self>, [src]
Self::Group: FromIterator<Self>,
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 as Expression>::Atom>, [src]
E: Expression,
Self::Atom: PartialEq<<E as Expression>::Atom>,
fn is_subexpression<E>(&self, other: &E) -> bool where
E: Expression,
Self::Atom: PartialEq<<E as Expression>::Atom>, [src]
E: Expression,
Self::Atom: PartialEq<<E as Expression>::Atom>,
fn map<E, F>(self, f: F) -> E where
E: Expression,
F: FnMut(Self::Atom) -> <E as Expression>::Atom,
Self::Group: IntoIterator,
<E as Expression>::Group: FromIterator<E>,
<Self::Group as IntoIterator>::Item == Self, [src]
E: Expression,
F: FnMut(Self::Atom) -> <E as Expression>::Atom,
Self::Group: IntoIterator,
<E as Expression>::Group: FromIterator<E>,
<Self::Group as IntoIterator>::Item == Self,
fn map_ref<E, F>(&self, f: F) -> E where
E: Expression,
F: FnMut(&Self::Atom) -> <E as Expression>::Atom,
<E as Expression>::Group: FromIterator<E>, [src]
E: Expression,
F: FnMut(&Self::Atom) -> <E as Expression>::Atom,
<E as Expression>::Group: FromIterator<E>,
fn substitute<F>(self, f: F) -> Self where
F: FnMut(Self::Atom) -> Self,
Self::Group: FromIterator<Self>,
Self::Group: IntoIterator,
<Self::Group as IntoIterator>::Item == Self, [src]
F: FnMut(Self::Atom) -> Self,
Self::Group: FromIterator<Self>,
Self::Group: IntoIterator,
<Self::Group as IntoIterator>::Item == Self,
fn substitute_ref<F>(&self, f: F) -> Self where
F: FnMut(&Self::Atom) -> Self,
Self::Group: FromIterator<Self>, [src]
F: FnMut(&Self::Atom) -> Self,
Self::Group: FromIterator<Self>,
impl<A> From<Expr<A>> for Expr<Expr<A>>[src]
impl<A: Hash> Hash for Expr<A>[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<A> IntoIteratorGen<Expr<A>> for Vec<Expr<A>>[src]
impl<A, '_> IteratorGen<Expr<A>> for &'_ Vec<Expr<A>>[src]
type Item = &'t Expr<A>
type Iter = Iter<'t, Expr<A>>
Underlying Iterator Type
fn iter(&self) -> Self::Iter[src]
impl<A: Ord> Ord for Expr<A>[src]
fn cmp(&self, other: &Expr<A>) -> 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<A: PartialEq> PartialEq<Expr<A>> for Expr<A>[src]
impl<A: PartialOrd> PartialOrd<Expr<A>> for Expr<A>[src]
fn partial_cmp(&self, other: &Expr<A>) -> Option<Ordering>[src]
fn lt(&self, other: &Expr<A>) -> bool[src]
fn le(&self, other: &Expr<A>) -> bool[src]
fn gt(&self, other: &Expr<A>) -> bool[src]
fn ge(&self, other: &Expr<A>) -> bool[src]
impl<A> StructuralEq for Expr<A>[src]
impl<A> StructuralPartialEq for Expr<A>[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for Expr<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Expr<A> where
A: Send,
A: Send,
impl<A> Sync for Expr<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Expr<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Expr<A> where
A: UnwindSafe,
A: UnwindSafe,
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, 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>,