fn slice_index(&self, count: usize) -> Option<usize> {
        if self.slice.len() >= count {
            Some(count)
        } else {
            None
        }
    }
/// Get the byte offset from the element's position in the slice
/// of the span.
///
/// # Examples
///
/// ```
/// # extern crate tagua_parser;
/// # extern crate nom;
/// use tagua_parser::tokens::Span;
/// use nom::InputIter;
///
/// # fn main() {
/// assert_eq!(Span::new(b"foobar").slice_index(3), Some(3));
/// # }
/// ```
Get the byte offset from the element's position in the slice
of the span.
Get the byte offset from the element ' s position in the slice of the span .
fn slice_index(&self, count: usize) -> Option<usize> {
        if self.slice.len() >= count {
            Some(count)
        } else {
            None
        }
    }
fn slice_index ( & self , count : usize ) -> Option < usize > { if self . slice . len ( ) >= count { Some ( count ) } else { None } }
Get the byte offset from the element's position in the slice
of the span.
Get the byte offset from the element ' s position in the slice of the span .
&self
count
usize
examples
None
extern crate tagua_parser;
None
extern crate nom;
use tagua_parser::tokens::Span;
use nom::InputIter.
use tagua_parser :: tokens :: Span ; use nom :: InputIter .
fn main() {
None
}
None