pub struct Tree(/* private fields */);
Expand description
Store all final routes.
Implementations§
source§impl Tree
impl Tree
sourcepub fn find<'a, 'b>(
&'a self,
method: &'b Method,
path: &'b str,
) -> Option<(&'a BoxHandler, Path<'a, 'b>)>
pub fn find<'a, 'b>( &'a self, method: &'b Method, path: &'b str, ) -> Option<(&'a BoxHandler, Path<'a, 'b>)>
Find a handler by the HTTP method and the URI’s path.
sourcepub fn into_inner(self) -> Vec<(Method, PathTree<BoxHandler>)>
pub fn into_inner(self) -> Vec<(Method, PathTree<BoxHandler>)>
Consumes the Tree, returning the wrapped value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tree
impl !RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)