pub trait WriteStruct: Sized {
    type Parent: TypedParent;

    fn write_field(
        self,
        name: FieldName,
        value: &impl StrictEncode
    ) -> Result<Self>; fn complete(self) -> Self::Parent; }

Required Associated Types§

Required Methods§

source

fn write_field(self, name: FieldName, value: &impl StrictEncode) -> Result<Self>

source

fn complete(self) -> Self::Parent

Implementors§

source§

impl<W: Write, P: StrictParent<W>> WriteStruct for StructWriter<W, P>

§

type Parent = P