Skip to main content

mxc_uri_ref

Macro mxc_uri_ref 

Source
macro_rules! mxc_uri_ref {
    ($s:literal) => { ... };
}
Available on crate feature unstable-identifier-ref-macros only.
Expand description

Compile-time checked &'static MxcUri construction.

This is currently equivalent to mxc_uri!. However there is a plan to remove identifier DST types, so that other macro’s return type will change while this macro is guaranteed to keep its return type. This macro allows to ease the transition for the expected change by allowing to migrate tests in advance.

This is behind an unstable cargo feature because it is likely to be removed soon after the DST identifier type removal.