[][src]Function fbs::follow_cast_ref

pub unsafe fn follow_cast_ref<'a, T: Sized + 'a>(
    buf: &'a [u8],
    loc: usize
) -> Result<&'a T, Error>

Follow the pointer to the Vector payload, and cast it to T

Safety

A pointer to T must be safely cast from any bytes and thus have the right representation, alignment, ...