pub trait CharEq { fn matches(&self, char) -> bool; fn only_ascii(&self) -> bool; }
Something that can be used to compare against a character
fn matches(&self, char) -> bool
Determine if the splitter should split at the given character
fn only_ascii(&self) -> bool
Indicate if this is only concerned about ASCII characters, which can allow for a faster implementation.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).