Skip to main content

Module item

Module item 

Source

Traits§

HaystackItem
A trait that represents an individual item that can be matched against a Regex. The primary (and only) two implementors are char and u8.

Functions§

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