- implemented first bits
This commit is contained in:
1 parent
47d242cf95
commit
ecd3ebdbdc
21 files changed
+1305
-19
No files matched your search
@@ -0,0 +1,15 @@
|
||||
use strum::IntoStaticStr;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error, IntoStaticStr)]
|
||||
pub enum Error {
|
||||
#[error(transparent)]
|
||||
ShapeError(#[from] ndarray::ShapeError),
|
||||
}
|
||||
|
||||
impl Error {
|
||||
/// the name of the error variant as a static string
|
||||
pub fn variant_name(&self) -> &'static str {
|
||||
self.into()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user