Trait sycamore_router::TryFromSegments
source · [−]pub trait TryFromSegments: Sized {
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).