Trait TryFromSegments

Source
pub trait TryFromSegments: Sized {
    // Required method
    fn try_from_segments(segments: &[&str]) -> Option<Self>;
}
Expand description

Fallible conversion between a list of param captures into a value.

Required Methods§

Source

fn try_from_segments(segments: &[&str]) -> Option<Self>

Sets the value of the capture variable with the value of segments. Returns false if unsuccessful (e.g. parsing error).

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<T> TryFromSegments for Vec<T>
where T: TryFromParam,

Source§

fn try_from_segments(segments: &[&str]) -> Option<Self>

Implementors§