layout

Trait ApplyLayout

source
pub trait ApplyLayout<'a, R: IO>: Encode + Decode {
    type Frame: Frame<R> + 'a;

    // Required method
    fn apply_layout(
        stream: &'a mut R,
        offset: u64,
    ) -> Result<Self::Frame, R::Error>;
}

Required Associated Types§

source

type Frame: Frame<R> + 'a

Required Methods§

source

fn apply_layout(stream: &'a mut R, offset: u64) -> Result<Self::Frame, R::Error>

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.

Implementations on Foreign Types§

source§

impl<'a, R: 'a + IO, T: 'a + Fixed + Encode + Decode, const N: usize> ApplyLayout<'a, R> for [T; N]

source§

type Frame = ArrFrame<'a, R, T, N>

source§

fn apply_layout(stream: &'a mut R, offset: u64) -> Result<Self::Frame, R::Error>

source§

impl<'a, R: 'a + Read + Seek + IO, T: 'a + Fixed + Encode + Decode> ApplyLayout<'a, R> for Box<[T]>

source§

type Frame = DynArrFrame<'a, R, T>

source§

fn apply_layout(stream: &'a mut R, offset: u64) -> Result<Self::Frame, R::Error>

Implementors§

source§

impl<'a, R: 'a + IO> ApplyLayout<'a, R> for RawBytes

source§

impl<'a, T: 'a, R: 'a + IO> ApplyLayout<'a, R> for Raw<T>

source§

type Frame = RawFrame<'a, T, R>