use core::fmt;
#[derive(Copy, Clone, Eq, PartialEq, Debug, Default)]
#[non_exhaustive]
pub struct OverflowError();
#[cfg(feature = "unstable-error")]
impl core::error::Error for OverflowError {}
impl fmt::Display for OverflowError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("value overflow")
}
}
impl OverflowError {
pub const fn new() -> Self {
Self()
}
}