1 2 3 4 5 6 7 8 9
use std::fmt::{Debug, Display}; use thiserror::Error; use crate::als::RTriplet; #[derive(Error, Debug)] pub enum ALSError<T : Display> { #[error("Invalid Triplet {0:?}: {1}")] InvalidTripletError(RTriplet<T>, String), }