smoll 0.0.1

Single MOLecule Localization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()
    }
}