Module prelude

Module prelude 

Source
Expand description

Prelude module that can be imported when working with the yew_router

Re-exports§

pub use crate::route::RouteState;
pub use crate::service::RouteService;
pub use crate::agent::RouteAgent;
pub use crate::agent::RouteAgentBridge;
pub use crate::agent::RouteAgentDispatcher;
pub use crate::components::RouterAnchor;
pub use crate::components::RouterButton;
pub use crate::router::Router;
pub use crate::router::RouterState;
pub use crate::route::Route;
pub use crate::switch::Routable;
pub use crate::switch::Switch;

Type Aliases§

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.