[][src]Module router_xiaobei::prelude

Things that you'll usually need when working with frontend routing

Re-exports

pub use router_xiaobei_macro::create_routes;
pub use router_xiaobei_macro::route;

Modules

builder

Helpers for building virtual DOM nodes.

bumpalo

A fast bump allocation arena for Rust.

Structs

Attribute

An attribute on a DOM node, such as id="my-thing" or href="https://example.com".

Cached

A renderable that supports caching for when rendering is expensive but can generate the same DOM tree.

ElementNode

Elements have a tag name, zero or more attributes, and zero or more children.

Listener

An event listener.

Provided

Data that was provided by the developer.

Route

A route specifies a path to match against. When a match is found a view_creator is used to return an impl View that can be used to render the appropriate content for that route.

Router

Holds all of the routes for an application.

TextNode

Text nodes are just a string of text. They cannot have attributes or children.

Vdom

A strong handle to a mounted virtual DOM.

VdomWeak

A weak handle to a virtual DOM.

Enums

Node

A node is either a text node or an element.

Traits

Render

A trait for any component that can be rendered to HTML.

RootRender

A RootRender is a render component that can be the root rendering component mounted to a virtual DOM.

RouteHandler

Used by router-rs-macro during code generation when turning your

RouteParam

Enables a type to be used as a route paramer

Type Definitions

ListenerCallback

An event listener callback function.

ParseRouteParam

Given a param_key &str and a param_val &str, get the corresponding route parameter

ProvidedMap

A map of TypeId's to Box<Provided> (stored as Box)