[−][src]Enum simple_parser::Expression
Variants
Fields of Alternation
expressions: Vec<Expression<N, T>>
Fields of Concatenation
expressions: Vec<Expression<N, T>>
Implementations
impl<N, T> Expression<N, T> where
N: Clone + Ord,
T: Clone + PartialEq<T>,
[src]
N: Clone + Ord,
T: Clone + PartialEq<T>,
pub fn parse(
&self,
tokens: &[Token<T>],
productions: &BTreeMap<N, Expression<N, T>>
) -> Result<ParseTree<N, T>, &'static str>
[src]
&self,
tokens: &[Token<T>],
productions: &BTreeMap<N, Expression<N, T>>
) -> Result<ParseTree<N, T>, &'static str>
Trait Implementations
impl<N, T> Clone for Expression<N, T> where
N: Clone,
T: Clone,
[src]
N: Clone,
T: Clone,
fn clone(&self) -> Expression<N, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N, T> Debug for Expression<N, T> where
N: Debug,
T: Debug,
[src]
N: Debug,
T: Debug,
impl<N, T> Eq for Expression<N, T> where
N: Eq,
T: Eq,
[src]
N: Eq,
T: Eq,
impl<N, T> Ord for Expression<N, T> where
N: Ord,
T: Ord,
[src]
N: Ord,
T: Ord,
fn cmp(&self, other: &Expression<N, T>) -> 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<N, T> PartialEq<Expression<N, T>> for Expression<N, T> where
N: PartialEq<N>,
T: PartialEq<T>,
[src]
N: PartialEq<N>,
T: PartialEq<T>,
fn eq(&self, other: &Expression<N, T>) -> bool
[src]
fn ne(&self, other: &Expression<N, T>) -> bool
[src]
impl<N, T> PartialOrd<Expression<N, T>> for Expression<N, T> where
N: PartialOrd<N>,
T: PartialOrd<T>,
[src]
N: PartialOrd<N>,
T: PartialOrd<T>,
fn partial_cmp(&self, other: &Expression<N, T>) -> Option<Ordering>
[src]
fn lt(&self, other: &Expression<N, T>) -> bool
[src]
fn le(&self, other: &Expression<N, T>) -> bool
[src]
fn gt(&self, other: &Expression<N, T>) -> bool
[src]
fn ge(&self, other: &Expression<N, T>) -> bool
[src]
Auto Trait Implementations
impl<N, T> RefUnwindSafe for Expression<N, T> where
N: RefUnwindSafe,
T: RefUnwindSafe,
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for Expression<N, T> where
N: Send,
T: Send,
N: Send,
T: Send,
impl<N, T> Sync for Expression<N, T> where
N: Sync,
T: Sync,
N: Sync,
T: Sync,
impl<N, T> Unpin for Expression<N, T> where
N: Unpin,
T: Unpin,
N: Unpin,
T: Unpin,
impl<N, T> UnwindSafe for Expression<N, T> where
N: UnwindSafe,
T: UnwindSafe,
N: UnwindSafe,
T: 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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,