use core::fmt::{self, Display};
#[derive(Debug)]
pub enum Error {
OutOfBounds,
}
impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
use Error::*;
match self {
OutOfBounds => write!(f, "BitBuf: operation out of bounds"),
}
}
}
impl core::error::Error for Error {}