[][src]Struct flatbuffers::Verifier

pub struct Verifier<'opts, 'buf> { /* fields omitted */ }

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]

pub fn verify_union_variant<T: Verifiable>(
    &mut self,
    variant: &'static str,
    position: usize
) -> Result<(), InvalidFlatbuffer>
[src]

Runs the union variant's type's verifier assuming the variant is at the given position, tracing the error.

Trait Implementations

impl<'opts, 'buf> Debug for Verifier<'opts, 'buf>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.