Closed Stupremee closed 4 years ago
To answer the previous question about literal!
, here is the explanation. To paraphrase, it means anything created as a literal is static and .clone()
does effectively nothing.
Also, possibly you can add a test that ensures the pointer returned by Lexer::slice
is identical to the lexer's ArcStr
. This would use pointer_eq!
provided by arcstr
, I believe.
Closed in favor of #514
Resolves #509