Trait vortex_flatbuffers::ReadFlatBuffer

source ·
pub trait ReadFlatBuffer: Sized {
    type Source<'a>: Verifiable + Follow<'a>;
    type Error: From<InvalidFlatbuffer>;

    // Required method
    fn read_flatbuffer<'buf>(
        fb: &<Self::Source<'buf> as Follow<'buf>>::Inner,
    ) -> Result<Self, Self::Error>;

    // Provided method
    fn read_flatbuffer_bytes<'buf>(
        bytes: &'buf [u8],
    ) -> Result<Self, Self::Error>
       where <Self as ReadFlatBuffer>::Source<'buf>: 'buf { ... }
}

Required Associated Types§

source

type Source<'a>: Verifiable + Follow<'a>

source

type Error: From<InvalidFlatbuffer>

Required Methods§

source

fn read_flatbuffer<'buf>( fb: &<Self::Source<'buf> as Follow<'buf>>::Inner, ) -> Result<Self, Self::Error>

Provided Methods§

source

fn read_flatbuffer_bytes<'buf>(bytes: &'buf [u8]) -> Result<Self, Self::Error>
where <Self as ReadFlatBuffer>::Source<'buf>: 'buf,

Object Safety§

This trait is not object safe.

Implementors§