Trait libreda_db::layout::io::LayoutStreamWriter

source ·
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§

source

type Error

Type of error that could happen while writing a layout.

Required Methods§

source

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.

Object Safety§

This trait is not object safe.

Implementors§