MCPcopy Create free account
hub / github.com/audulus/rui / command

Method command

src/modifiers.rs:18–25  ·  view source on GitHub ↗

Adds a menu command.

(
        self,
        name: &str,
        key: Option<HotKey>,
        f: F,
    )

Source from the content-addressed store, hash-verified

16
17 /// Adds a menu command.
18 fn command<F: Fn(&mut Context) + Clone + 'static>(
19 self,
20 name: &str,
21 key: Option<HotKey>,
22 f: F,
23 ) -> Command<Self, F> {
24 Command::new(self, name.into(), key, f)
25 }
26
27 /// Adds a group of menu commands.
28 fn command_group<T: CommandTuple>(self, cmds: T) -> CommandGroup<Self, T> {

Callers 1

mainFunction · 0.80

Implementers 1

modifiers.rssrc/modifiers.rs

Calls

no outgoing calls

Tested by

no test coverage detected