pub trait PathParam:
Sealed
+ Sized
+ Send {
// Required method
fn parse_param(name: &str, raw: &str) -> Result<Self>;
}Expand description
Types extractable from one path segment. The built-in set (integers,
String, bool, floats, char) is sealed; custom param types (id newtypes)
join it through the path_param! macro, which is the
only sanctioned way to implement this trait outside the crate.
Required Methods§
fn parse_param(name: &str, raw: &str) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".