[][src]Trait antlr_rust::char_stream::CharStream

pub trait CharStream<Data>: IntStream {
    pub fn get_text(&self, a: isize, b: isize) -> Data;
}

Provides underlying data for Tokens.

Required methods

pub fn get_text(&self, a: isize, b: isize) -> Data[src]

Returns underlying data piece, either slice or owned copy. Panics if provided indexes are invalid Called by parser only on token intervals. This fact can be used by custom implementations

Loading content...

Implementors

impl<'a, 'b, T> CharStream<Cow<'b, str>> for InputStream<&'a [T]> where
    [T]: InputData
[src]

impl<'a, T> CharStream<Cow<'a, [T]>> for InputStream<&'a [T]> where
    [T]: InputData
[src]

impl<'a, T> CharStream<&'a [T]> for InputStream<&'a [T]> where
    [T]: InputData
[src]

impl<'a, T> CharStream<String> for InputStream<&'a [T]> where
    [T]: InputData
[src]

impl<'a, T: From<&'a str>> CharStream<T> for InputStream<&'a str>[src]

impl<T: From<D::Owned>, D: ?Sized + InputData> CharStream<T> for InputStream<Box<D>>[src]

Loading content...