pub trait RelaxedFollowTrait {
type Inner<'a>: Follow<'a>;
// Provided method
unsafe fn follow(
buf: &[u8],
loc: usize,
) -> <<Self as RelaxedFollowTrait>::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::RelaxedFollowTrait;
impl RelaxedFollowTrait for MyFlatBuffer<'_> {
type Inner<'a> = MyFlatBuffer<'a>;
}
Required Associated Types§
Provided Methods§
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.