Struct radix_router::router::Params[][src]

pub struct Params(pub Vec<Param>);

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]

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.

Empty Params

Trait Implementations

impl Debug for Params
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Params
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Index<usize> for Params
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

Auto Trait Implementations

impl Send for Params

impl Sync for Params