[][src]Module binread::error

Error types and internal error handling functions

Enums

Error

An error while parsing a BinRead type

Functions

assert

Assert a condition is true and if not optionally apply a function to generate the error

identity_after_parse

Functional wrapper to apply a BinRead::after_parse stand-in function to a value and then return the value if the after_parse function succeeds.

magic

Read a value then check if it is the expected value

nop3

A no-op replacement for BinRead::read_options that returns the unit type

nop3_default

A no-op replacement for BinRead::read_options that returns the default value for the given type. Internally used for the default attribute.

nop5

A no-op replacement for BinRead::after_parse

read_options_then_after_parse
try_conversion

Conversion used internally by the try attribute to make parsing failures softer