pub struct Node<T: Clone + Send> { /* private fields */ }
Expand description
A single node in the route parse tree.
Implementations§
source§impl<T: 'static + Context + Clone + Send> Node<T>
impl<T: 'static + Context + Clone + Send> Node<T>
sourcepub fn get_value_at_path<'m, 'k: 'm>(
&'k self,
path: String
) -> NodeOutput<'m, T>
pub fn get_value_at_path<'m, 'k: 'm>( &'k self, path: String ) -> NodeOutput<'m, T>
Gets the value at the end of the path.
sourcepub fn add_value_at_path(&mut self, path: &str, value: MiddlewareTuple<T>)
pub fn add_value_at_path(&mut self, path: &str, value: MiddlewareTuple<T>)
Adds the value at the given path.
sourcepub fn add_non_leaf_value_at_path(
&mut self,
path: &str,
value: MiddlewareTuple<T>
)
pub fn add_non_leaf_value_at_path( &mut self, path: &str, value: MiddlewareTuple<T> )
Adds the value at the given path as a non-leaf (i.e. middleware.)
sourcepub fn add_node_at_path(&mut self, path: &str, added_node: Node<T>)
pub fn add_node_at_path(&mut self, path: &str, added_node: Node<T>)
Merges this node with another node, attempting to combine values at matching paths.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Node<T>
impl<T> Send for Node<T>
impl<T> Sync for Node<T>
impl<T> Unpin for Node<T>
impl<T> !UnwindSafe for Node<T>
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