[][src]Function rumq_core::mqtt4::matches

pub fn matches(topic: &str, filter: &str) -> bool

Checks if topic matches a filter. topic and filter validation isn't done here. note 'topic' is a misnomer in the arg. This can also be used to match 2 wild subscriptions. note Make sure a topic is validated during a publish and filter is validated during a subscribe