pub trait WriteStruct: Sized {
type Parent: TypedParent;
// Required methods
fn write_field(
self,
name: FieldName,
value: &impl StrictEncode,
) -> Result<Self>;
fn complete(self) -> Self::Parent;
}
Required Associated Types§
type Parent: TypedParent
Required Methods§
fn write_field(self, name: FieldName, value: &impl StrictEncode) -> 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.