Struct nom::types::Input [−][src]
pub struct Input<T> { pub inner: T, pub at_eof: bool, }
Fields
inner: T
at_eof: bool
Trait Implementations
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) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Input<T>
[src]
impl<T: PartialEq> PartialEq for Input<T>
fn eq(&self, other: &Input<T>) -> bool
[src]
fn eq(&self, other: &Input<T>) -> bool
This 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>) -> bool
This method tests for !=
.
impl<T: Hash> Hash for Input<T>
[src]
impl<T: Hash> Hash for Input<T>
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> AtEof for Input<T>
[src]
impl<T> AtEof 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: 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::Iter
returns an iterator over the elements and their byte offsets
fn iter_elements(&self) -> Self::IterElem
[src]
fn iter_elements(&self) -> Self::IterElem
returns 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) -> Self
returns 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<T: InputLength> InputLength for Input<T>
[src]
impl<T: InputLength> InputLength for Input<T>
fn input_len(&self) -> usize
[src]
fn input_len(&self) -> usize
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]
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) -> CompareResult
compares self to another value for equality
fn compare_no_case(&self, t: &'b str) -> CompareResult
[src]
fn compare_no_case(&self, t: &'b str) -> CompareResult
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<'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<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) -> bool
impl<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) -> bool
impl<'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) -> bool
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: 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>) -> usize
offset 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>