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

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more