Skip to main content

FinishedObject

Trait FinishedObject 

Source
pub trait FinishedObject: Sized {
    type State;

    // Required method
    fn finish_object(
        obj: ObjectBuilder<'_>,
        state: &Self::State,
    ) -> Result<Self>;
}
Expand description

A type which can be the result of serializing an object.

Required Associated Types§

Source

type State

State required for finish_object, if any.

Required Methods§

Source

fn finish_object(obj: ObjectBuilder<'_>, state: &Self::State) -> Result<Self>

Emit the object as Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§