sakka 0.0.2

A low-level framework for implementing binary file format parsers and writers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
    #[error("Out of bounds")]
    OutOfBounds,

    #[error("Invalid alignment")]
    InvalidAlignment,

    #[error("Collection length overflow")]
    CollectionLengthOverflow,

    #[error("Collection length is negative")]
    CollectionLengthNegative,
}