Trait FromRouteSegments

pub trait FromRouteSegments: Sized {
    type Err: Display;

    // Required method
    fn from_route_segments(segments: &[&str]) -> Result<Self, Self::Err>;
}

Required Associated Types§

type Err: Display

The error that can occur when parsing route segments.

Required Methods§

fn from_route_segments(segments: &[&str]) -> Result<Self, Self::Err>

Create an instance of Self from route segments.

NOTE: This method must parse the output of ToRouteSegments::display_route_segments into the type Self.

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.

Implementors§