15 lines
243 B
Rust
15 lines
243 B
Rust
use standard::*;
|
|
|
|
#[macro_export]
|
|
macro_rules! xjson {
|
|
( $x:expr ) => {
|
|
FromJson::from_json($x)
|
|
}
|
|
}
|
|
|
|
/// TODO [Gav Wood] Please document me
|
|
pub trait FromJson {
|
|
/// TODO [Gav Wood] Please document me
|
|
fn from_json(json: &Json) -> Self;
|
|
}
|