souvenir 0.3.1

Prefixed identifier library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::{Display, Formatter};

#[derive(Debug)]
pub enum Error {
    InvalidData,
    PrefixMismatch {
        expected: &'static str,
        actual: String,
    },
}

impl Display for Error {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

impl std::error::Error for Error {}