[][src]Macro seal_rs::extended_type_matcher

macro_rules! extended_type_matcher {
    ($t:path , $v:ident => $body:expr) => { ... };
}

Creates TestProbe matcher function which match specified message type and if is was success, apply specified user function to the result.

Examples

extended_type_matcher!(some_actor::SomeMsg, v => {
    if v.data > 100 {
        true
    } else {
        false
    }
});

// Inner function must return bool value