Skip to main content

Module error

Module error 

Source
Expand description

Deserialize errors and helpers.

Requires the serde or rkyv feature. Errors returned when Input fails to deserialize.

Enabled by the serde or rkyv Cargo feature. Serde maps these to custom deserializer errors; rkyv uses [DeserializeError::InvalidArchive].

Enums§

DeserializeError
Failure while decoding external data into [Input].

Constants§

EXPECTED_INPUT_TYPES
Allowed top-level [Input] kinds, used in type-mismatch messages.

Functions§

i128_to_isize
Convert a deserialized integer to isize, if it fits (serde feature).
invalid_type
Build a type-mismatch error with EXPECTED_INPUT_TYPES (serde feature).

Type Aliases§

InputSerializeError
[Input] serialization is infallible for supported serializers/archives.