Trait finchers::request::FromParam
[−]
[src]
pub trait FromParam: Sized { type Error; fn from_param(s: &str) -> Result<Self, Self::Error>; }
Represents the conversion from a path segment
Associated Types
type Error
The error type of from_param()
Required Methods
fn from_param(s: &str) -> Result<Self, Self::Error>
Try to convert a str
to itself
Implementors
impl FromParam for i8 type Error = <i8 as FromStr>::Err;
impl FromParam for u8 type Error = <u8 as FromStr>::Err;
impl FromParam for i16 type Error = <i16 as FromStr>::Err;
impl FromParam for u16 type Error = <u16 as FromStr>::Err;
impl FromParam for i32 type Error = <i32 as FromStr>::Err;
impl FromParam for u32 type Error = <u32 as FromStr>::Err;
impl FromParam for i64 type Error = <i64 as FromStr>::Err;
impl FromParam for u64 type Error = <u64 as FromStr>::Err;
impl FromParam for isize type Error = <isize as FromStr>::Err;
impl FromParam for usize type Error = <usize as FromStr>::Err;
impl FromParam for f32 type Error = <f32 as FromStr>::Err;
impl FromParam for f64 type Error = <f64 as FromStr>::Err;
impl FromParam for String type Error = <String as FromStr>::Err;