Trait dioxus_router::routable::FromRouteSegment
source · pub trait FromRouteSegment: Sized {
type Err;
// Required method
fn from_route_segment(route: &str) -> Result<Self, Self::Err>;
}
Expand description
Something that can be created from a route segment.
Required Associated Types§
Required Methods§
sourcefn from_route_segment(route: &str) -> Result<Self, Self::Err>
fn from_route_segment(route: &str) -> Result<Self, Self::Err>
Create an instance of Self
from a route segment.
Object Safety§
This trait is not object safe.