Macro smart_read::try_read

source ·
macro_rules! try_read {
    () => { ... };
    ([$default:expr]) => { ... };
    ($custom_input:expr) => { ... };
    ([$default:expr] $custom_input:expr) => { ... };
    (= $($choice:expr),*) => { ... };
    ([$default:expr] = $($choice:expr),*) => { ... };
}
Expand description

same as read!(), but returns a result