Enum exprz::vec::Expr [−][src]
This is supported on crate feature
alloc
only.Vector Expression Type
Variants
Atomic expression
Group(Vec<Self>)
Grouped expression
Trait Implementations
impl<A: Clone> Clone for Expr<A>
[src]
fn clone(&self) -> Expr<A>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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> 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 default_atom<T>() -> Self::Atom where
Self::Atom: FromIterator<T>,
[src]
Self::Atom: FromIterator<T>,
fn default_group() -> Self::Group where
Self::Group: FromIterator<Self>,
[src]
Self::Group: FromIterator<Self>,
fn default() -> Self where
Self::Group: FromIterator<Self>,
[src]
Self::Group: FromIterator<Self>,
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 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 matches<P>(&self, pattern: P) -> bool where
P: Pattern<Self>,
[src]
P: Pattern<Self>,
fn matches_equal<P>(&self, pattern: &P) -> bool where
P: Expression,
P::Atom: PartialEq<Self::Atom>,
[src]
P: Expression,
P::Atom: PartialEq<Self::Atom>,
fn matches_subexpression<P>(&self, pattern: &P) -> bool where
P: Expression,
P::Atom: PartialEq<Self::Atom>,
[src]
P: Expression,
P::Atom: PartialEq<Self::Atom>,
fn matches_basic_shape<P>(&self, pattern: &P) -> bool where
P: Expression<Atom = BasicShape>,
P::Atom: PartialEq<Self::Atom>,
[src]
P: Expression<Atom = BasicShape>,
P::Atom: PartialEq<Self::Atom>,
fn matches_wildcard<W, P>(&self, is_wildcard: W, pattern: &P) -> bool where
P: Expression,
P::Atom: PartialEq<Self::Atom>,
W: Fn(&P::Atom) -> bool,
[src]
P: Expression,
P::Atom: PartialEq<Self::Atom>,
W: Fn(&P::Atom) -> bool,
fn map<E, F>(self, f: F) -> E where
Self::Group: IntoIterator<Item = Self>,
E: Expression,
E::Group: FromIterator<E>,
F: FnMut(Self::Atom) -> E::Atom,
[src]
Self::Group: IntoIterator<Item = Self>,
E: Expression,
E::Group: FromIterator<E>,
F: FnMut(Self::Atom) -> E::Atom,
fn map_ref<E, F>(&self, f: 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: F) -> Self where
Self::Group: FromIterator<Self> + IntoIterator<Item = Self>,
F: FnMut(Self::Atom) -> Self,
[src]
Self::Group: FromIterator<Self> + IntoIterator<Item = Self>,
F: FnMut(Self::Atom) -> Self,
fn substitute_ref<F>(&self, f: F) -> Self where
Self::Group: FromIterator<Self>,
F: FnMut(&Self::Atom) -> Self,
[src]
Self::Group: FromIterator<Self>,
F: FnMut(&Self::Atom) -> Self,
impl<A> From<Expr<A>> for Expr<Expr<A>>
[src]
impl<A> FromStr for Expr<A> where
A: FromIterator<char>,
[src]
A: FromIterator<char>,
This is supported on crate feature
parse
only.type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl<A: Hash> Hash for Expr<A>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: PartialEq> PartialEq<Expr<A>> for Expr<A>
[src]
impl<A> StructuralEq for Expr<A>
[src]
impl<A> StructuralPartialEq for Expr<A>
[src]
Auto Trait Implementations
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,
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>,