Skip to main content

PathSyntaxAlg

Trait PathSyntaxAlg 

Source
pub trait PathSyntaxAlg {
    // Required methods
    fn param(&self, name: &str) -> String;
    fn tail(&self, name: &str) -> String;
}
Expand description

Spells route-path parameters the way one router reads them.

Required Methods§

Source

fn param(&self, name: &str) -> String

Returns the spelling of a parameter binding one segment.

Source

fn tail(&self, name: &str) -> String

Returns the spelling of a parameter binding every remaining segment.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§