from_io

Macro from_io 

Source
macro_rules! from_io {
    ($obj: expr, $type: ty) => { ... };
}
Expand description

Deserializes .io formatted String into Self.

Returns result with deserialized object or errors::Error.

§Arguments

  • io_string - .io formatted String
  • type - type of the deserialized object

§Errors

§Examples

use iodeser::*;

let io_string = /* read from string or .io file */ "|\n\n\n|".to_string();
let object : Vec<i32> = from_io!(io_string, Vec<i32>).unwrap();