try_get

Macro try_get 

Source
macro_rules! try_get {
    (fn($input:ident: &mut $ity:ty) -> Result<($oty:ty, $aty:ty), $ety:ty> { $($v:tt)+ }) => { ... };
    (fn<$a:lifetime>($input:ident: &mut $ity:ty) -> Result<($oty:ty, $aty:ty), $ety:ty> { $($v:tt)+ }) => { ... };
}
Expand description

A macro for quickly implementing crate::TryGetFut without capturing.

If you need capturing, you will have to manually capture what you want in a user-defined struct and implement crate::TryGetFut for that struct.