iron_mountrouter::picker! [] [src]

macro_rules! picker {
    ($($method:ident => $handler:expr),+ $(,)*) => ({
        let mut picker = $crate::MethodPicker::new();
        $(picker.$method($handler);)*
        picker
    });
}

Create and populate method picker.

let picker = picker!(get => show,
                     post => save);