Trait libreda_db::layout::io::LayoutStreamReader[][src]

pub trait LayoutStreamReader {
    type Error;
    fn read_layout<R: Read>(
        &self,
        reader: &mut R,
        layout: &mut Layout
    ) -> Result<(), Self::Error>; }

Trait for reading a layout from a byte stream.

Associated Types

type Error[src]

Type of error that could happen while reading a layout.

Loading content...

Required methods

fn read_layout<R: Read>(
    &self,
    reader: &mut R,
    layout: &mut Layout
) -> Result<(), Self::Error>
[src]

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

Loading content...

Implementors

Loading content...