/// Get the named parameter from the path, as defined in your router. The
/// value will be parsed into the type specified by `T` by calling
/// `value.parse::<T>()`. This method returns `None` if the named
/// parameter does not exist in the current path.
Get the named parameter from the path, as defined in your router. The
value will be parsed into the type specified by `T` by calling
`value.parse::()`. This method returns `None` if the named
parameter does not exist in the current path.
Get the named parameter from the path as defined in your router . The value will be parsed into the type specified by ` T ` by calling ` value . parse :: () ` . This method returns ` None ` if the named parameter does not exist in the current path .
pub fn parse_segment<T>(&self, name: &str) -> Option<Result<T, T::Err>>
    where
        T: FromStr,
    {
        self.segment(name).map(|value| value.parse::<T>())
    }
pub fn parse_segment < T > ( & self , name : & str ) -> Option < Result < T , T :: Err > > where T : FromStr , { self . segment ( name ) . map ( | value | value . parse :: < T > ( ) ) }
Get the named parameter from the path, as defined in your router.
Get the named parameter from the path as defined in your router .
&self
name
&str