pub trait PathWisp: Debug + 'static {
    // Required method
    fn detect(&self, url: &Url, state: &mut PathState) -> bool;

    // Provided method
    fn validate(&self) -> Result<(), String> { ... }
}
Expand description

PathWisp

Required Methods§

source

fn detect(&self, url: &Url, state: &mut PathState) -> bool

Detect is that path matched.

Provided Methods§

source

fn validate(&self) -> Result<(), String>

Validate the wisp. Panic if invalid.

Implementors§