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§
Required Methods§
Sourcefn finish_object(obj: ObjectBuilder<'_>, state: &Self::State) -> Result<Self>
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", so this trait is not object safe.