pub trait RelaxedFollow {
    type Inner<'a>: Follow<'a>;

    // Provided method
    fn follow(
        buf: &[u8],
        loc: usize
    ) -> <<Self as RelaxedFollow>::Inner<'_> as Follow<'_>>::Inner { ... }
}
Expand description

This trait allows a .follow() method that returns a FlatBuffer with the lifetime of the provided byte slice.

Example trait implementation

use flatbuffers_owned::RelaxedFollow;

impl RelaxedFollow for MyStruct<'_> {
   type Inner<'a> = MyFlatBuffer<'a>;
}

Required Associated Types§

source

type Inner<'a>: Follow<'a>

Provided Methods§

source

fn follow( buf: &[u8], loc: usize ) -> <<Self as RelaxedFollow>::Inner<'_> as Follow<'_>>::Inner

Implementors§