Module rkyv::validation[][src]

Validation implementations and helper types.

Structs

ArchiveBoundsValidator

A validator that can bounds check pointers in an archive.

ArchiveValidator

An adapter that adds memory validation to a context.

Interval

A range of bytes in an archive.

SharedArchiveValidator

An adapter that adds shared memory validation.

Enums

ArchiveBoundsError

Errors that can occur when checking a relative pointer

ArchiveMemoryError

Errors that can occur related to archive memory.

CheckArchiveError

Errors that can occur when checking an archive.

SharedArchiveError

Errors that can occur when checking shared memory.

Traits

ArchiveBoundsContext

A context that can check relative pointers.

ArchiveMemoryContext

A context that can validate archive memory.

LayoutMetadata

Gets the layout of a type from its metadata.

SharedArchiveContext

A context that can validate shared archive memory.

Functions

check_archive

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

check_archive_with_context

Checks the given archive with an additional context.

Type Definitions

DefaultArchiveValidator

A validator that supports all builtin types.