1 2 3 4 5 6 7 8 9 10 11 12
#[derive(Debug)] pub struct DimError { details: String, } impl DimError { pub fn new(msg: &str) -> DimError { DimError { details: msg.to_string(), } } }