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]
fn clone(&self) -> Input<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for Input<T>
[src]
impl<T: Debug> Debug for Input<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for Input<T>
[src]
fn eq(&self, __arg_0: &Input<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Input<T>) -> bool
[src]
This method tests for !=
.
impl<T: Hash> Hash for Input<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
[src]
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]
H: Hasher,
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]
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]
returns an iterator over the elements and their byte offsets
fn iter_elements(&self) -> Self::IterElem
[src]
returns an iterator over the elements
fn position<P>(&self, predicate: P) -> Option<usize> where
P: Fn(Self::RawItem) -> bool,
[src]
P: Fn(Self::RawItem) -> bool,
finds the byte position of the element
fn slice_index(&self, count: usize) -> Option<usize>
[src]
get the byte offset from the element's position in the stream
impl<T: InputTake> InputTake for Input<T>
[src]
fn take(&self, count: usize) -> Self
[src]
returns a slice of count
bytes. panics if count > length
fn take_split(&self, count: usize) -> (Self, Self)
[src]
split the stream at the count
byte offset. panics if count > length
impl<T: InputLength> InputLength for Input<T>
[src]
fn input_len(&self) -> usize
[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]
fn compare(&self, t: &'b str) -> CompareResult
[src]
compares self to another value for equality
fn compare_no_case(&self, t: &'b str) -> CompareResult
[src]
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]
fn find_substring(&self, substr: &'b str) -> Option<usize>
[src]
impl<T: FindToken<char>> FindToken<char> for Input<T>
[src]
fn find_token(&self, token: char) -> bool
[src]
impl<T: FindToken<u8>> FindToken<u8> for Input<T>
[src]
fn find_token(&self, token: u8) -> bool
[src]
impl<'a, T: FindToken<&'a u8>> FindToken<&'a u8> for Input<T>
[src]
fn find_token(&self, token: &'a u8) -> bool
[src]
impl<'a, R: FromStr, T: ParseTo<R>> ParseTo<R> for Input<T>
[src]
impl<T: Offset> Offset for Input<T>
[src]
fn offset(&self, second: &Input<T>) -> usize
[src]
offset between the first byte of self and the first byte of the argument