[][src]Trait antlr_rust::char_stream::InputData

pub trait InputData: Index<Range<usize>, Output = Self> + Index<RangeFrom<usize>, Output = Self> + ToOwned + 'static {
    fn offset(&self, index: isize, item_offset: isize) -> Option<isize>;
fn item(&self, index: isize) -> Option<isize>;
fn len(&self) -> usize;
fn from_text(text: &str) -> Self::Owned;
fn to_display(&self) -> String; }

Trait for input that can be accepted by InputStream to be able to provide lexer with data. Is sealed for now just in case.

Required methods

fn offset(&self, index: isize, item_offset: isize) -> Option<isize>

fn item(&self, index: isize) -> Option<isize>

fn len(&self) -> usize

fn from_text(text: &str) -> Self::Owned

fn to_display(&self) -> String

Loading content...

Implementations on Foreign Types

impl<T: Into<u32> + From<u8> + TryFrom<u32> + Copy + Debug + 'static> InputData for [T] where
    <T as TryFrom<u32>>::Error: Debug
[src]

impl InputData for str[src]

Loading content...

Implementors

Loading content...