Struct chomp::buffer::InputBuf [] [src]

#[must_use]
pub struct InputBuf<'a, I: 'a>(_, _);

Input buffer type which contains a flag which tells if we might need to read more data.

Methods

impl<'a, I: 'a> InputBuf<'a, I>
[src]

Creates a new input buffer with incomplete set to false.

Returns true if parsers want to obtain more data.

The result of the parsing is only accurate if this is false after completed parsing.

Returns the length of the contained buffer, may be an incomplete buffer.

Returns true if the contained buffer is empty, may return true even when incomplete.

Trait Implementations

impl<'a, I: Debug + 'a> Debug for InputBuf<'a, I>
[src]

Formats the value using the given formatter.

impl<'a, I: Eq + 'a> Eq for InputBuf<'a, I>
[src]

impl<'a, I: PartialEq + 'a> PartialEq for InputBuf<'a, I>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, I: Ord + 'a> Ord for InputBuf<'a, I>
[src]

This method returns an Ordering between self and other. Read more

impl<'a, I: PartialOrd + 'a> PartialOrd for InputBuf<'a, I>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'a, I: Hash + 'a> Hash for InputBuf<'a, I>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a, I: Copy + PartialEq> Input for InputBuf<'a, I>
[src]

The token type of the input.

The buffer type yielded by this input when multiple tokens are consumed in sequence. Read more

Returns t as a success value in the parsing context. Read more

Returns e as an error value in the parsing context. Read more

Converts a Result into a ParseResult, preserving parser state. Read more