use core::error::Error;
use core::fmt::{Display, Formatter};
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum FromIterableError {
EmptyIterable,
SizeNotMultipleOfWidth,
}
impl Display for FromIterableError {
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
match self {
Self::EmptyIterable => write!(f, "empty iterator"),
Self::SizeNotMultipleOfWidth => write!(f, "size is not multiple of width"),
}
}
}
impl Error for FromIterableError {}