pub trait FromRouteSegments: Sized {
    type Err;

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

Something that can be created from route segments.

Required Associated Types§

source

type Err

The error that can occur when parsing route segments.

Required Methods§

source

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

Create an instance of Self from route segments.

Object Safety§

This trait is not object safe.

Implementors§