[][src]Crate yew_router_min

Provides routing faculties for the Yew web framework.

Contents

This crate consists of multiple types, some independently useful on their own, that are used together to facilitate routing within the Yew framework. Among them are:

  • Switch - A trait/derive macro that allows specification of how enums or structs can be constructed from Routes.

Re-exports

pub use yew_router_route_parser;
pub use route::Switch;

Modules

matcher

Module for matching route strings based on tokens generated from the yew_router_route_parser crate.

prelude

Prelude module that can be imported when working with the yew_router

route

Parses routes into enums or structs.

Type Definitions

Captures

Alias of HashMap<&'a str, String> that represent strings captured from a route.

Derive Macros

Switch

Implements the Switch trait based on attributes present on the struct or enum variants.