0.4.4
-
Accept
const_fn
attribute with no arguments and functions withoutconst
keyword.
This allowsconst_fn
to be used as an optional dependency.#[cfg_attr(feature = "...", const_fn::const_fn)] pub fn func() { /* ... */ }
Accept const_fn
attribute with no arguments and functions without const
keyword.
This allows const_fn
to be used as an optional dependency.
#[cfg_attr(feature = "...", const_fn::const_fn)]
pub fn func() {
/* ... */
}