[][src]Macro zoozle::safe_scan

macro_rules! safe_scan {
    ($e:ident) => { ... };
}

Scan macro like C++ cin. Ignores whitespace. Never call panic!(). If failed to translate into desired type, the default value will be assigned.

Examples

let x:i32; x=safe_scan!(9999);