Struct nom::types::CompleteByteSlice
[−]
[src]
pub struct CompleteByteSlice<'a>(pub &'a [u8]);
Trait Implementations
impl<'a> Clone for CompleteByteSlice<'a>
[src]
fn clone(&self) -> CompleteByteSlice<'a>
[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<'a> Copy for CompleteByteSlice<'a>
[src]
impl<'a> Debug for CompleteByteSlice<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for CompleteByteSlice<'a>
[src]
fn eq(&self, __arg_0: &CompleteByteSlice<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CompleteByteSlice<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Hash for CompleteByteSlice<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[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<'a> AtEof for CompleteByteSlice<'a>
[src]
impl<'a> Slice<Range<usize>> for CompleteByteSlice<'a>
[src]
impl<'a> Slice<RangeTo<usize>> for CompleteByteSlice<'a>
[src]
impl<'a> Slice<RangeFrom<usize>> for CompleteByteSlice<'a>
[src]
impl<'a> Slice<RangeFull> for CompleteByteSlice<'a>
[src]
impl<'a> InputIter for CompleteByteSlice<'a>
[src]
type Item = u8
type RawItem = u8
type Iter = Enumerate<Self::IterElem>
type IterElem = Map<Iter<'a, Self::Item>, fn(_: &u8) -> u8>
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<'a> InputTake for CompleteByteSlice<'a>
[src]
fn take(&self, count: usize) -> Option<Self>
[src]
returns a slice of count
bytes
fn take_split(&self, count: usize) -> Option<(Self, Self)>
[src]
split the stream at the count
byte offset
impl<'a> InputLength for CompleteByteSlice<'a>
[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<'a, 'b> Compare<&'b [u8]> for CompleteByteSlice<'a>
[src]
fn compare(&self, t: &'b [u8]) -> CompareResult
[src]
compares self to another value for equality
fn compare_no_case(&self, t: &'b [u8]) -> CompareResult
[src]
compares self to another value for equality independently of the case. Read more
impl<'a, 'b> Compare<&'b str> for CompleteByteSlice<'a>
[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<'a, 'b> FindSubstring<&'b [u8]> for CompleteByteSlice<'a>
[src]
impl<'a, 'b> FindSubstring<&'b str> for CompleteByteSlice<'a>
[src]
fn find_substring(&self, substr: &'b str) -> Option<usize>
[src]
impl<'a> FindToken<char> for CompleteByteSlice<'a>
[src]
fn find_token(&self, token: char) -> bool
[src]
impl<'a> FindToken<u8> for CompleteByteSlice<'a>
[src]
fn find_token(&self, token: u8) -> bool
[src]
impl<'a, 'b> FindToken<&'a u8> for CompleteByteSlice<'b>
[src]
fn find_token(&self, token: &u8) -> bool
[src]
impl<'a, R: FromStr> ParseTo<R> for CompleteByteSlice<'a>
[src]
impl<'a> Offset for CompleteByteSlice<'a>
[src]
fn offset(&self, second: &CompleteByteSlice<'a>) -> usize
[src]
offset between the first byte of self and the first byte of the argument