Closed jmjoy closed 10 months ago
We're considering copying the shorthand of the tracing crate, starting roughly here: https://github.com/rust-lang/log/issues/328#issuecomment-1681786059. For example log::as_display(value)
would be written as ?value
. Would something like that work for you?
We're considering copying the shorthand of the tracing crate, starting roughly here: #328 (comment). For example
log::as_display(value)
would be written as?value
. Would something like that work for you?
Very good, thank you. I just saw that the log
has a lot of formatting macros, such as serde
and sval
.
Just give
as_*!
add a grammar sugar. For example:also can be written:
For
as_debug
,as_display
and others: