use core::fmt::{Debug, Display, Formatter};
#[derive(Debug, Eq, PartialEq)]
#[non_exhaustive]
pub enum CooError {
InvalidIndcsOrder,
InvalidIndcs,
DuplicatedIndices,
#[cfg_attr(all(feature = "alloc", feature = "rand"), doc = "```rust")]
#[cfg_attr(not(all(feature = "alloc", feature = "rand")), doc = "```ignore")]
#[cfg(feature = "rand")]
NnzGreaterThanMaximumNnz,
}
impl Display for CooError {
#[inline]
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), core::fmt::Error> {
Debug::fmt(self, f)
}
}
impl core::error::Error for CooError {}