WriteFlatBuffer

Trait WriteFlatBuffer 

Source
pub trait WriteFlatBuffer {
    type Target<'a>;

    // Required method
    fn write_flatbuffer<'fb>(
        &self,
        fbb: &mut FlatBufferBuilder<'fb>,
    ) -> WIPOffset<Self::Target<'fb>>;
}
Expand description

Trait for writing a type to a FlatBuffer.

Required Associated Types§

Source

type Target<'a>

The FlatBuffer type that this type can be written to.

Required Methods§

Source

fn write_flatbuffer<'fb>( &self, fbb: &mut FlatBufferBuilder<'fb>, ) -> WIPOffset<Self::Target<'fb>>

Writes this type to a FlatBuffer builder.

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.

Implementors§