pub trait TopicGrammar: Send + Sync {
// Required method
fn compile(
&self,
pattern: &TopicPattern<'_>,
) -> Result<Box<dyn TopicFilter>, String>;
// Provided method
fn covers(&self, a: &str, b: &str) -> bool { ... }
}Expand description
A connector’s wildcard rules.
Required Methods§
fn compile( &self, pattern: &TopicPattern<'_>, ) -> Result<Box<dyn TopicFilter>, String>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".