[−][src]Function flatbuffers::root
pub fn root<'buf, T>(data: &'buf [u8]) -> Result<T::Inner, InvalidFlatbuffer> where
T: 'buf + Follow<'buf> + Verifiable,
Gets the root of the Flatbuffer, verifying it first with default options.
Note that verification is an experimental feature and may not be maximally performant or
catch every error (though that is the goal). See the _unchecked
variants for previous
behavior.