geekorm-derive 0.11.5

GeekORM Derive Macros Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro_rules! format_err {
    ($obj:expr, $($format:tt)+) => {{
        #[allow(unused_imports)]
        use $crate::errors::*;
        let msg = format!($($format)+);
        $obj.to_tokens_error(msg)
    }};
}

macro_rules! abort {
    ($obj:expr, $($format:tt)+) => {{
        return Err(format_err!($obj, $($format)+));
    }};
}