Skip to main content

is_slash_command

Function is_slash_command 

Source
pub fn is_slash_command(input: &str) -> bool
Expand description

Check if input starts with a slash command.

§Example

assert!(is_slash_command("/help"));
assert!(!is_slash_command("hello"));