Trait npyz::TypeWriteDyn
source · pub trait TypeWriteDyn: TypeWrite { }
Expand description
The proper trait to use for trait objects of TypeWrite
.
Box<dyn TypeWrite>
is useless because dyn TypeWrite
has no object-safe methods.
The workaround is to use Box<dyn TypeWriteDyn>
instead, which itself implements TypeWrite
.