pub struct ExpectedTokenSet { /* private fields */ }Expand description
Interval-set of expected token types, displayable through a vocabulary —
the shape ANTLR’s getExpectedTokens().toString(vocabulary) exposes to
generated test actions.
Implementations§
Source§impl ExpectedTokenSet
impl ExpectedTokenSet
Sourcepub fn to_token_string(&self, vocabulary: &Vocabulary) -> String
pub fn to_token_string(&self, vocabulary: &Vocabulary) -> String
Formats the set using ANTLR token display names, e.g. {'a', 'b'}.
Trait Implementations§
Source§impl Clone for ExpectedTokenSet
impl Clone for ExpectedTokenSet
Source§fn clone(&self) -> ExpectedTokenSet
fn clone(&self) -> ExpectedTokenSet
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 ExpectedTokenSet
impl Debug for ExpectedTokenSet
impl Eq for ExpectedTokenSet
Source§impl PartialEq for ExpectedTokenSet
impl PartialEq for ExpectedTokenSet
impl StructuralPartialEq for ExpectedTokenSet
Auto Trait Implementations§
impl Freeze for ExpectedTokenSet
impl RefUnwindSafe for ExpectedTokenSet
impl Send for ExpectedTokenSet
impl Sync for ExpectedTokenSet
impl Unpin for ExpectedTokenSet
impl UnsafeUnpin for ExpectedTokenSet
impl UnwindSafe for ExpectedTokenSet
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