pub trait WriteEnum: Sized {
type Parent: TypedWrite;
// Required methods
fn write_variant(self, name: VariantName) -> Result<Self>;
fn complete(self) -> Self::Parent;
}
Required Associated Types§
type Parent: TypedWrite
Required Methods§
fn write_variant(self, name: VariantName) -> Result<Self>
fn complete(self) -> Self::Parent
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.