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§
Sourcefn try_from_segments(segments: &[&str]) -> Option<Self>
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.