All notable changes to this project will be documented in this file.
raw_input
and into_raw_input
to non-bool *Lit
typesimpl From<*Lit> for pm::Literal
(for non-bool literals)impl From<BoolLit> for pm::Ident
[into_]raw_input
for integer and float literals, their internals were changed a bit so that they store the full input string now.\n\r
into \n
expected
value of the error returned from TryFrom<TokenTree>
impls in some casesError
to ParseError
. That describes its purpose more closely and is particular useful now that other error types exist in the library.proc-macro
feature and instead offer the corresponding impl
s unconditionally. Since the feature didn‘t enable/disable a dependency (proc-macro
is a compiler provided crate) and since apparently it works fine in no_std
environments, I dropped this feature. I don’t currently see a reason why the corresponding impls should be conditional.TryFrom<TokenTree> for litrs::Literal
implsFrom<*Lit> for litrs::Literal
implsTryFrom<proc_macro[2]::Literal> for *Lit
TryFrom<TokenTree> for *Lit
InvalidToken
error type for all new TryFrom
implsFrom
impls to create a Literal
from references to proc-macro literal types:From<&proc_macro::Literal>
From<&proc_macro2::Literal>