openethereum/util/src/from_json.rs

13 lines
164 B
Rust
Raw Normal View History

2016-01-14 21:24:16 +01:00
use standard::*;
#[macro_export]
macro_rules! xjson {
( $x:expr ) => {
FromJson::from_json($x)
}
}
pub trait FromJson {
fn from_json(json: &Json) -> Self;
}