pub enum TriggerStep {
Awaiting,
Fired(Vec<(u32, Vec<u8>)>),
}Expand description
What one observed token did to a not-yet-triggered grammar.
Variants§
Awaiting
Nothing matched. The token was buffered and the grammar is untouched – it is not advanced by unconstrained output.
Fired(Vec<(u32, Vec<u8>)>)
A trigger fired. These (token, piece) pairs are what the grammar
must now be fed, in order, as if they had been sampled under it.
A piece here can be a fragment of the token’s real piece: the
token that straddles the match start is truncated to the part at or
after it.
Trait Implementations§
Source§impl Clone for TriggerStep
impl Clone for TriggerStep
Source§fn clone(&self) -> TriggerStep
fn clone(&self) -> TriggerStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggerStep
impl Debug for TriggerStep
impl Eq for TriggerStep
Source§impl PartialEq for TriggerStep
impl PartialEq for TriggerStep
impl StructuralPartialEq for TriggerStep
Auto Trait Implementations§
impl Freeze for TriggerStep
impl RefUnwindSafe for TriggerStep
impl Send for TriggerStep
impl Sync for TriggerStep
impl Unpin for TriggerStep
impl UnsafeUnpin for TriggerStep
impl UnwindSafe for TriggerStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more