instant

Macro instant 

Source
macro_rules! instant {
    ($category:expr, $name:expr, $scope:expr $(, $key:expr => $val:expr)*) => { ... };
}
Expand description

Convenience macro for the instant function.

Example:

instant!("foo", "bar", Scope::Process, "x" => 5, "y" => "boo");

is equivalent to

instant("foo", "bar", Scope::Process,
    &[ArgValue::of("x", 5), ArgValue::of("y", "boo")]);

or

const FOO: &'static str = "foo";
const BAR: &'static str = "bar";
instant(FOO, BAR, Scope::Process,
    &[ArgValue::of("x", 5), ArgValue::of("y", "boo")]);