use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[cfg(feature = "std")]
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Insufficient data")]
InsufficientData,
#[error("Skipped data")]
SkippedData,
#[error("End of reader")]
Eof,
}