Struct pom::TextInput [] [src]

pub struct TextInput<'a> {
    pub text: &'a str,
    pub position: usize,
}

Wrap &str as input to parser.

Fields

Methods

impl<'a> TextInput<'a>
[src]

Trait Implementations

impl<'a> Input<char> for TextInput<'a>
[src]

Get current position.

Peek current symbol.

Advance to next symbol.

Jump to specified position.

Get a segment from the input.