Home | History | Annotate | Download | only in src

Lines Matching refs:follow

19 /// Follow is a trait that allows us to access FlatBuffers in a declarative,
21 /// optimizations). Conceptually, Follow lifts the offset-based access
24 /// all other data. At this time, Follow is not utilized much on the write
27 /// Writing a new Follow implementation primarily involves deciding whether
30 pub trait Follow<'a> {
32 fn follow(buf: &'a [u8], loc: usize) -> Self::Inner;
35 /// Execute a follow as a top-level function.
38 pub fn lifted_follow<'a, T: Follow<'a>>(buf: &'a [u8], loc: usize) -> T::Inner {
39 T::follow(buf, loc)
42 /// FollowStart wraps a Follow impl in a struct type. This can make certain
46 impl<'a, T: Follow<'a> + 'a> FollowStart<T> {
53 T::follow(buf, loc)
56 impl<'a, T: Follow<'a>> Follow<'a> for FollowStart<T> {
59 fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
60 T::follow(buf, loc)