Skip to main content

BuildPath

Trait BuildPath 

Source
pub trait BuildPath {
    // Required method
    fn build_path(captures: &Self, pattern: &str) -> String;
}
Expand description

Builds a URL path by substituting capture values into {} placeholders.

Required Methods§

Source

fn build_path(captures: &Self, pattern: &str) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BuildPath for ()

Source§

fn build_path(_: &(), pattern: &str) -> String

Source§

impl<A: Display> BuildPath for (A,)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display> BuildPath for (A, B)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display, C: Display> BuildPath for (A, B, C)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display, C: Display, D: Display> BuildPath for (A, B, C, D)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display, C: Display, D: Display, E: Display> BuildPath for (A, B, C, D, E)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display, C: Display, D: Display, E: Display, F: Display> BuildPath for (A, B, C, D, E, F)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display, C: Display, D: Display, E: Display, F: Display, G: Display> BuildPath for (A, B, C, D, E, F, G)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Source§

impl<A: Display, B: Display, C: Display, D: Display, E: Display, F: Display, G: Display, H: Display> BuildPath for (A, B, C, D, E, F, G, H)

Source§

fn build_path(captures: &Self, pattern: &str) -> String

Implementors§