[−][src]Struct flatbuffers::Verifier
Carries the verification state. Should not be reused between tables.
Implementations
impl<'opts, 'buf> Verifier<'opts, 'buf>
[src]
pub fn new(opts: &'opts VerifierOptions, buffer: &'buf [u8]) -> Self
[src]
pub fn reset(&mut self)
[src]
Resets verifier internal state.
pub fn in_buffer<T>(&mut self, pos: usize) -> Result<(), InvalidFlatbuffer>
[src]
pub fn visit_table<'ver>(
&'ver mut self,
table_pos: usize
) -> Result<TableVerifier<'ver, 'opts, 'buf>, InvalidFlatbuffer>
[src]
&'ver mut self,
table_pos: usize
) -> Result<TableVerifier<'ver, 'opts, 'buf>, InvalidFlatbuffer>
pub fn verify_union_variant<T: Verifiable>(
&mut self,
variant: &'static str,
position: usize
) -> Result<(), InvalidFlatbuffer>
[src]
&mut self,
variant: &'static str,
position: usize
) -> Result<(), InvalidFlatbuffer>
Runs the union variant's type's verifier assuming the variant is at the given position, tracing the error.
Trait Implementations
Auto Trait Implementations
impl<'opts, 'buf> RefUnwindSafe for Verifier<'opts, 'buf>
impl<'opts, 'buf> Send for Verifier<'opts, 'buf>
impl<'opts, 'buf> Sync for Verifier<'opts, 'buf>
impl<'opts, 'buf> Unpin for Verifier<'opts, 'buf>
impl<'opts, 'buf> UnwindSafe for Verifier<'opts, 'buf>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,