1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/// Compiletime error #[derive(Debug)] pub struct Lovm2CompileError { pub ty: Option<String>, pub msg: String, } impl<T> From<T> for Lovm2CompileError where T: ToString, { fn from(msg: T) -> Self { Self { ty: None, msg: msg.to_string(), } } }