Trait chomp::primitives::InputBuffer [] [src]

pub trait InputBuffer<'a> {
    type Item: 'a;
    fn buffer(&self) -> &'a [Self::Item];
    fn replace(self, &'a [Self::Item]) -> Self;
    fn is_last_slice(&self) -> bool;
}

Primitive: Trait exposing the buffer of Input.

Primitive

Only used by fundamental parsers and combinators.

Associated Types

type Item: 'a

Required Methods

fn buffer(&self) -> &'a [Self::Item]

Reveals the internal buffer containig the remainder of the input.

Primitive

Only used by fundamental parsers and combinators.

fn replace(self, &'a [Self::Item]) -> Self

Modifies the inner data without leaving the Input context.

Primitive

Only used by fundamental parsers and combinators.

fn is_last_slice(&self) -> bool

Returns true if this is the last available slice of the input.

Primitive

Only used by fundamental parsers and combinators.

Implementors