Struct gotham::router::tree::Tree [−][src]
pub struct Tree { /* fields omitted */ }
Expand description
A hierarchical structure that provides a root Node
and subtrees of linked nodes
that represent valid Request
paths.
The Tree
is created by the gotham::router::builder
API and used internally by the Router
to determine the valid Route
instances for a request path before dispatch.
Implementations
Adds a Route
be evaluated by the Router
when the root of the Tree
is requested.
Borrow the root NodeBuilder
as mutable.
Determines if a child Node
representing the exact segment provided exists at the root of
the Tree
.
To be used in building a Tree
structure only.
Auto Trait Implementations
impl RefUnwindSafe for Tree
impl !UnwindSafe for Tree
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more