New object_id!(...)
declarative macro that checks the validity of a const &str
as ObjectID
without using compile-time panic.
#20214
Labels
I wrote a new declarative macro that uses the
diagnostic::on_unimplemented
that checks the validity of aconst &str
and converts it to anObjectID
under const context.Playground.
Have a look @patrickkuo and @sblackshear. Thank you.
The text was updated successfully, but these errors were encountered: