#[derive(Clone, Debug)]
pub enum Error {
BinaryExceedsTernaryRange,
TernaryExceedsBinaryRange,
}
impl core::fmt::Display for Error {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
match self {
Error::BinaryExceedsTernaryRange => write!(f, "Binary representation exceeds ternary range."),
Error::TernaryExceedsBinaryRange => write!(f, "Ternary representation exceeds binary range."),
}
}
}