[−][src]Trait logos::source::Slice
Trait for a Slice
of a Source
that the Lexer
can consume.
Most commonly, those will be the same types:
&str
slice for&str
source.&[u8]
slice for&[u8]
source.
Required methods
fn as_bytes(&self) -> &'source [u8]
In all implementations we should at least be able to obtain a slice of bytes as the lowest level common denominator.