[−][src]Struct nom::types::Input
Fields
inner: T
at_eof: bool
Trait Implementations
impl<T: InputLength> InputLength for Input<T>[src]
impl<T: InputLength> InputLength for Input<T>fn input_len(&self) -> usize[src]
fn input_len(&self) -> usizecalculates the input length, as indicated by its name, and the name of the trait itself Read more
impl<T: Offset> Offset for Input<T>[src]
impl<T: Offset> Offset for Input<T>fn offset(&self, second: &Input<T>) -> usize[src]
fn offset(&self, second: &Input<T>) -> usizeoffset between the first byte of self and the first byte of the argument
impl<T: AsBytes> AsBytes for Input<T>[src]
impl<T: AsBytes> AsBytes for Input<T>impl<T: InputIter> InputIter for Input<T>[src]
impl<T: InputIter> InputIter for Input<T>type Item = <T as InputIter>::Item
type RawItem = <T as InputIter>::RawItem
type Iter = <T as InputIter>::Iter
type IterElem = <T as InputIter>::IterElem
fn iter_indices(&self) -> Self::Iter[src]
fn iter_indices(&self) -> Self::Iterreturns an iterator over the elements and their byte offsets
fn iter_elements(&self) -> Self::IterElem[src]
fn iter_elements(&self) -> Self::IterElemreturns an iterator over the elements
fn position<P>(&self, predicate: P) -> Option<usize> where
P: Fn(Self::RawItem) -> bool, [src]
fn position<P>(&self, predicate: P) -> Option<usize> where
P: Fn(Self::RawItem) -> bool, finds the byte position of the element
fn slice_index(&self, count: usize) -> Option<usize>[src]
fn slice_index(&self, count: usize) -> Option<usize>get the byte offset from the element's position in the stream
impl<T: InputTake> InputTake for Input<T>[src]
impl<T: InputTake> InputTake for Input<T>fn take(&self, count: usize) -> Self[src]
fn take(&self, count: usize) -> Selfreturns a slice of count bytes. panics if count > length
fn take_split(&self, count: usize) -> (Self, Self)[src]
fn take_split(&self, count: usize) -> (Self, Self)split the stream at the count byte offset. panics if count > length
impl<'b, T: Compare<&'b str>> Compare<&'b str> for Input<T>[src]
impl<'b, T: Compare<&'b str>> Compare<&'b str> for Input<T>fn compare(&self, t: &'b str) -> CompareResult[src]
fn compare(&self, t: &'b str) -> CompareResultcompares self to another value for equality
fn compare_no_case(&self, t: &'b str) -> CompareResult[src]
fn compare_no_case(&self, t: &'b str) -> CompareResultcompares self to another value for equality independently of the case. Read more
impl<T: FindToken<char>> FindToken<char> for Input<T>[src]
impl<T: FindToken<char>> FindToken<char> for Input<T>fn find_token(&self, token: char) -> bool[src]
fn find_token(&self, token: char) -> boolimpl<T: FindToken<u8>> FindToken<u8> for Input<T>[src]
impl<T: FindToken<u8>> FindToken<u8> for Input<T>fn find_token(&self, token: u8) -> bool[src]
fn find_token(&self, token: u8) -> boolimpl<'a, T: FindToken<&'a u8>> FindToken<&'a u8> for Input<T>[src]
impl<'a, T: FindToken<&'a u8>> FindToken<&'a u8> for Input<T>fn find_token(&self, token: &'a u8) -> bool[src]
fn find_token(&self, token: &'a u8) -> boolimpl<'b, T: FindSubstring<&'b str>> FindSubstring<&'b str> for Input<T>[src]
impl<'b, T: FindSubstring<&'b str>> FindSubstring<&'b str> for Input<T>fn find_substring(&self, substr: &'b str) -> Option<usize>[src]
fn find_substring(&self, substr: &'b str) -> Option<usize>impl<'a, R: FromStr, T: ParseTo<R>> ParseTo<R> for Input<T>[src]
impl<'a, R: FromStr, T: ParseTo<R>> ParseTo<R> for Input<T>impl<T: Slice<Range<usize>>> Slice<Range<usize>> for Input<T>[src]
impl<T: Slice<Range<usize>>> Slice<Range<usize>> for Input<T>impl<T: Slice<RangeTo<usize>>> Slice<RangeTo<usize>> for Input<T>[src]
impl<T: Slice<RangeTo<usize>>> Slice<RangeTo<usize>> for Input<T>impl<T: Slice<RangeFrom<usize>>> Slice<RangeFrom<usize>> for Input<T>[src]
impl<T: Slice<RangeFrom<usize>>> Slice<RangeFrom<usize>> for Input<T>impl<T: Slice<RangeFull>> Slice<RangeFull> for Input<T>[src]
impl<T: Slice<RangeFull>> Slice<RangeFull> for Input<T>impl<T> AtEof for Input<T>[src]
impl<T> AtEof for Input<T>impl<T: PartialEq> PartialEq<Input<T>> for Input<T>[src]
impl<T: PartialEq> PartialEq<Input<T>> for Input<T>fn eq(&self, other: &Input<T>) -> bool[src]
fn eq(&self, other: &Input<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Input<T>) -> bool[src]
fn ne(&self, other: &Input<T>) -> boolThis method tests for !=.
impl<T: Clone> Clone for Input<T>[src]
impl<T: Clone> Clone for Input<T>fn clone(&self) -> Input<T>[src]
fn clone(&self) -> Input<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: Copy> Copy for Input<T>[src]
impl<T: Copy> Copy for Input<T>impl<T: Debug> Debug for Input<T>[src]
impl<T: Debug> Debug for Input<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Hash> Hash for Input<T>[src]
impl<T: Hash> Hash for Input<T>Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 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, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Ifn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Ifn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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