[−][src]Trait logos::source::WithSource
Marker trait for any Logos
, which will constrain it to a specific subset of
Source
s.
In particular, if your token definitions would allow reading invalid UTF-8,
the Logos
derive macro will restrict you to lexing on Source
s that also
implement the BinarySource
marker (&[u8]
is provided).
Note: You shouldn't implement this trait yourself, #[derive(Logos)]
will
do it for you.