pub trait LayoutStreamWriter {
type Error;
// Required method
fn write_layout<W: Write, L: LayoutBase<Coord = i32>>(
&self,
writer: &mut W,
layout: &L,
) -> Result<(), Self::Error>;
}Expand description
Trait for writing a layout to a byte stream.
Required Associated Types§
Required Methods§
Sourcefn write_layout<W: Write, L: LayoutBase<Coord = i32>>(
&self,
writer: &mut W,
layout: &L,
) -> Result<(), Self::Error>
fn write_layout<W: Write, L: LayoutBase<Coord = i32>>( &self, writer: &mut W, layout: &L, ) -> Result<(), Self::Error>
Write the layout data structure to a byte stream.
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.