usestrum::IntoStaticStr;usethiserror::Error;#[derive(Debug, Error, IntoStaticStr)]pubenumError{#[error(transparent)]
ShapeError(#[from]ndarray::ShapeError),}implError{/// the name of the error variant as a static string
pubfnvariant_name(&self)->&'staticstr{self.into()}}