Module iter

Module iter 

Source

Structs§

ByteStack
A haystack type for matching against the u8s in a &[u8]. This type provides very straightforward indexing and iteration over the contained slice.
StrStack
A haystack type for matching against the chars in a &str. This type abstracts over the variable width scalars contained, to allow indexing without panics.

Traits§

HaystackIter
The main underlying trait for Haystack types, HaystackIter should be implemented on new types that understand slicing and iterating over a haystack that can be sliced into instances of Self::Slice.

Functions§

get_first_char
A helper for getting the first char of a provided &str. Returns the width of the character (possibly zero) and the character itself.