Open hh9527 opened 1 year ago
Slices wouldn't be so bad and I could relax the types here, however for the Lexer to work on segmented input, it would need to be able to read Chunk
s of sequentially allocated memory, which might be tricky with segmented input (in case Lexer wants to quickly match the next 8 bytes, but there are only 4 left in current segment, f.e.).
Is it possible to implement lexer over a segement input (E.g. RopeSlice) ?
I found that there is a
Source
trait inlogos
, but I have no idea how to implement these methods over RopeSlice.Those 2 methods require returning a
reference
, not areference-like-type
.For
RopeSlice
, I would expect using these approach:But this can not be done with current trait requirement.