Trait libreda_oasis::LayoutStreamReader

source ·
pub trait LayoutStreamReader {
    type Error;

    // Required method
    fn read_layout<R, L>(
        &self,
        reader: &mut R,
        layout: &mut L,
    ) -> Result<(), Self::Error>
       where R: Read,
             L: LayoutEdit<Coord = i32>;
}
Expand description

Trait for reading a layout from a byte stream.

Required Associated Types§

source

type Error

Type of error that could happen while reading a layout.

Required Methods§

source

fn read_layout<R, L>( &self, reader: &mut R, layout: &mut L, ) -> Result<(), Self::Error>
where R: Read, L: LayoutEdit<Coord = i32>,

Read a layout from a byte stream and populate the layout data structure.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl LayoutStreamReader for OASISStreamReader

Reader implementation.

§

type Error = OASISReadError