math_rs/
result.rs

1#[derive(Debug)]
2pub enum MathError {
3    MatrixError(String),
4}
5
6pub type Result<T> = core::result::Result<T, MathError>;
7
8impl From<MathError> for std::fmt::Error {
9    fn from(_: MathError) -> Self {
10        std::fmt::Error
11    }
12}