lovm2_core 0.4.8

a lightweight virtual machine with a focus on simplicity and extendability.
Documentation
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(),
        }
    }
}