Struct radix_router::tree::Node[][src]

pub struct Node<T> { /* fields omitted */ }


impl<T> Node<T>

addRoute adds a node with the given handle to the path. Not concurrency-safe!

Returns the handle registered with the given path (key). The values of wildcards are saved to a map. If no handle can be found, a TSR (trailing slash redirect) recommendation is made if a handle exists with an extra (without the) trailing slash for the given path.

Makes a case-insensitive lookup of the given path and tries to find a handler. It can optionally also fix trailing slashes. It returns the case-corrected path and a bool indicating whether the lookup was successful.

Trait Implementations

impl<T: Debug> Debug for Node<T>

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Node<T>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for Node<T> where
    T: Send

impl<T> Sync for Node<T> where
    T: Sync