FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RouteMatch

    struct · ferroui-view · v0.5.0

    struct RouteMatch
    

    What a route's pattern matched: the path, and the values of the parameters of the pattern.

    View source

    Members

    path

    fn path(self: &Self) -> &str
    

    The path that matched.

    Source

    param

    fn param(self: &Self, name: &str) -> Option<&str>
    

    The value of the parameter name (:name in the pattern). The rest of the path that * matched is the parameter *, without its first slash (empty when nothing was left).

    Source

    params

    fn params(self: &Self) -> &[(String, String)]
    

    The parameters in the order of the pattern.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.