Struct nom::types::Input[][src]

pub struct Input<T> {
    pub inner: T,
    pub at_eof: bool,
}

Fields

Trait Implementations

impl<T: Clone> Clone for Input<T>
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Input<T>
[src]

impl<T: Debug> Debug for Input<T>
[src]
[+]

[]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Input<T>
[src]
[+]

[]

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

[]

This method tests for !=.

impl<T: Hash> Hash for Input<T>
[src]
[+]

[]

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

[]

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

impl<T> AtEof for Input<T>
[src]
[+]

impl<T: Slice<Range<usize>>> Slice<Range<usize>> for Input<T>
[src]
[+]

impl<T: Slice<RangeTo<usize>>> Slice<RangeTo<usize>> for Input<T>
[src]
[+]

impl<T: Slice<RangeFrom<usize>>> Slice<RangeFrom<usize>> for Input<T>
[src]
[+]

impl<T: Slice<RangeFull>> Slice<RangeFull> for Input<T>
[src]
[+]

impl<T: InputIter> InputIter for Input<T>
[src]
[+]

[]

returns an iterator over the elements and their byte offsets

[]

returns an iterator over the elements

[]

finds the byte position of the element

[]

get the byte offset from the element's position in the stream

impl<T: InputTake> InputTake for Input<T>
[src]
[+]

[]

returns a slice of count bytes. panics if count > length

[]

split the stream at the count byte offset. panics if count > length

impl<T: InputLength> InputLength for Input<T>
[src]
[+]

[]

calculates the input length, as indicated by its name, and the name of the trait itself Read more

impl<'b, T: Compare<&'b str>> Compare<&'b str> for Input<T>
[src]
[+]

[]

compares self to another value for equality

[]

compares self to another value for equality independently of the case. Read more

impl<'b, T: FindSubstring<&'b str>> FindSubstring<&'b str> for Input<T>
[src]
[+]

impl<T: FindToken<char>> FindToken<char> for Input<T>
[src]
[+]

impl<T: FindToken<u8>> FindToken<u8> for Input<T>
[src]
[+]

impl<'a, T: FindToken<&'a u8>> FindToken<&'a u8> for Input<T>
[src]
[+]

impl<'a, R: FromStr, T: ParseTo<R>> ParseTo<R> for Input<T>
[src]
[+]

impl<T: Offset> Offset for Input<T>
[src]
[+]

[]

offset between the first byte of self and the first byte of the argument

impl<T: AsBytes> AsBytes for Input<T>
[src]
[+]

Important traits for &'a [u8]

Auto Trait Implementations

impl<T> Send for Input<T> where
    T: Send

impl<T> Sync for Input<T> where
    T: Sync