Skip to main content

methods

Macro methods 

Source
macro_rules! methods {
    ($($name:literal => $callback:path),* $(,)?) => { ... };
}
Expand description

A method name and the callback behind it.

Spelled out so a table of methods reads as a table rather than as a tuple whose halves you have to remember the order of.