pub trait ConstInstantiable {
// Required method
fn fmt_const_new(&self, f: &mut Formatter<'_>) -> Result;
}Expand description
Provides a way to generate code which instantiates values of the
implementing type in a const context.
Required Methods§
Sourcefn fmt_const_new(&self, f: &mut Formatter<'_>) -> Result
fn fmt_const_new(&self, f: &mut Formatter<'_>) -> Result
Print a const expression that can be used to instantiate this value.