Skip to main content

detect_space

Function detect_space 

Source
pub fn detect_space<'a>(
    message: &str,
    spaces: &'a [Space],
    matcher: &PathMatcher,
) -> Option<&'a Space>
Expand description

Match a message against all Spaces using a PathMatcher.

This is a convenience wrapper combining path detection with keyword matching.