Struct radix_router::router::Params [−][src]
Params is a Param-slice, as returned by the router. The slice is ordered, the first URL parameter is also the first slice value. It is therefore safe to read values by the index.
Methods
impl Params
[src]
impl Params
pub fn by_name(&self, name: &str) -> Option<&str>
[src]
pub fn by_name(&self, name: &str) -> Option<&str>
ByName returns the value of the first Param which key matches the given name. If no matching Param is found, an empty string is returned.
pub fn new() -> Params
[src]
pub fn new() -> Params
Empty Params
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn push(&mut self, p: Param)
[src]
pub fn push(&mut self, p: Param)
Trait Implementations
impl Debug for Params
[src]
impl Debug for Params
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Params
[src]
impl PartialEq for Params
fn eq(&self, other: &Params) -> bool
[src]
fn eq(&self, other: &Params) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Params) -> bool
[src]
fn ne(&self, other: &Params) -> bool
This method tests for !=
.
impl Index<usize> for Params
[src]
impl Index<usize> for Params