Open kangalio opened 2 years ago
another example:
#[derive(Derivative)]
#[derivative(Debug)]
pub enum EffectDescriptor<'cls> {
Output(#[derivative(Debug(value = "closure[thunk]"))] Box<dyn (Fn() -> TypeBox) + 'cls>),
UpdateVariable {
ident: String,
#[derivative(Debug(value = "closure[thunk]"))]
value: Box<dyn (Fn() -> TypeBox) + 'cls>,
},
PushScope,
PopScope,
}
It would be great to have the option to format a struct field or enum variant as a hardcoded string. For example: