Enum peg_runtime::RuleResult [−][src]
pub enum RuleResult<T> {
Matched(usize, T),
Failed,
}
Expand description
The result type used internally in the parser.
You’ll only need this if implementing the Parse*
traits for a custom input
type. The public API of a parser adapts errors to std::result::Result
.
Variants
Matched(usize, T)
Failed
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for RuleResult<T> where
T: RefUnwindSafe,
impl<T> Send for RuleResult<T> where
T: Send,
impl<T> Sync for RuleResult<T> where
T: Sync,
impl<T> Unpin for RuleResult<T> where
T: Unpin,
impl<T> UnwindSafe for RuleResult<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more