Function rkyv::validation::validators::check_archived_root[][src]

pub fn check_archived_root<'a, T: Archive>(
    bytes: &'a [u8]
) -> Result<&T::Archived, CheckTypeError<T::Archived, DefaultValidator<'a>>> where
    T::Archived: CheckBytes<DefaultValidator<'a>>, 
Expand description

Checks the given archive at the given position for an archived version of the given type.

This is a safe alternative to archived_value for types that implement CheckBytes.

See check_archived_value for more details.