map_first

Macro map_first 

Source
macro_rules! map_first {
    ($res:expr, $f:expr) => { ... };
}
Expand description

Helper for mapping the first element of a two eleent tuple. This is useful for cleanly handling the result of CompactEncoding::decode.