[−][src]Struct antlr_rust::vocabulary::VocabularyImpl
Implementations
impl VocabularyImpl
[src]
pub fn new<'b, T: Borrow<str> + 'b, Iter: IntoIterator<Item = &'b Option<T>>>(
literal_names: Iter,
symbolic_names: Iter,
display_names: Option<Iter>
) -> VocabularyImpl
[src]
literal_names: Iter,
symbolic_names: Iter,
display_names: Option<Iter>
) -> VocabularyImpl
pub fn from_token_names(token_names: &[Option<&str>]) -> VocabularyImpl
[src]
Trait Implementations
impl Debug for VocabularyImpl
[src]
impl Vocabulary for VocabularyImpl
[src]
fn get_max_token_type(&self) -> isize
[src]
fn get_literal_name(&self, token_type: isize) -> Option<&str>
[src]
fn get_symbolic_name(&self, token_type: isize) -> Option<&str>
[src]
fn get_display_name(&self, token_type: isize) -> Cow<'_, str>
[src]
Auto Trait Implementations
impl RefUnwindSafe for VocabularyImpl
impl Send for VocabularyImpl
impl Sync for VocabularyImpl
impl Unpin for VocabularyImpl
impl UnwindSafe for VocabularyImpl
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> NodeText for T
[src]
impl<'input, T> NodeText for T where
T: CustomRuleContext<'input>,
[src]
T: CustomRuleContext<'input>,
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>,