Macro read_str

Source
macro_rules! read_str {
    ($out:ident) => { ... };
}
Expand description

Read a String from stdin and trim it.

Took from stackoverflow

§Panics

Panics if the line contains incorrect symbols.

§Examples

use ognlib::read_str;

// this creates a String `x` from the line and trims it
read_str!(x);