Open nyurik opened 7 months ago
Currently, parse-display
does not have the ability to generate such code.
In the future, we may add the ability to generate such code by specifying an attribute such as #[display(transparent)]
.
Thx @frozenlib for quick reply! Could you maybe point me to what changes would be needed to make it possible? I could try to hack on it in my spare time
I think the first step would be to add field transparent
to DisplayArgs
and change the code generation method to use this value.
I won't know until I actually write it, but it seems like many modifications will be necessary.
Is there a way to generate this Display implementation? Note that this is not a
write!(f, "{0}", v)
, but ratherv.fmt(f)
call.