impl_read_one_from_for_from_str

Macro impl_read_one_from_for_from_str 

Source
macro_rules! impl_read_one_from_for_from_str {
    ($($ty:ty)+) => { ... };
    ($($ty:ty)+ => $accept:expr) => { ... };
}
Expand description

Implement ReadOneFrom for given types that already implement std::str::FromStr.

The intended grammar is:

$($ty:ty $(=> $accept:pat)?)*

Note that all types that are ReadOneFrom will also implement ReadInto automatically.