[][src]Struct bravery_router::Node

pub struct Node<T> {
    pub node_type: NodeType,
    pub value: Option<T>,
    pub static_children: Vec<Node<T>>,
    pub regex_children: Vec<Node<T>>,
    pub wildcard_children: Vec<Node<T>>,
}

Struct for representing a node into the RadixTree.

This struct is used for keeping some information about which kind of type, the value and the children

Fields

node_type: NodeTypevalue: Option<T>static_children: Vec<Node<T>>regex_children: Vec<Node<T>>wildcard_children: Vec<Node<T>>

Trait Implementations

impl<T: Clone> Clone for Node<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'node, T> PartialEq<Node<T>> for Node<T>[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

Auto Trait Implementations

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

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

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

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

impl<T> !RefUnwindSafe for Node<T>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]