[−][src]Struct path_tree::Node
A node stores kind data params indices and children nodes.
Implementations
impl<T> Node<T>
[src][−]
pub fn new(kind: NodeKind) -> Self
[src][−]
Creates a new node with a special kind.
pub fn add_node_static(&mut self, p: &str) -> &mut Self
[src][−]
Adds a child node witch a static path.
pub fn add_node_dynamic(&mut self, c: char, kind: NodeKind) -> &mut Self
[src][−]
Adds a child node witch a dynamic path.
pub fn insert(&mut self, p: &str) -> &mut Self
[src][−]
Inserts a path into node.
pub fn find<'a>(&'a self, p: &'a str) -> Option<(&'a Self, Vec<&'a str>)>
[src][−]
Returns a reference to the node corresponding to the path.
Trait Implementations
impl<T: Clone> Clone for Node<T>
[src][+]
impl<T: Debug> Debug for Node<T>
[src][+]
impl<T> Default for Node<T>
[src][+]
Auto Trait Implementations
impl<T> RefUnwindSafe for Node<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Node<T> where
T: Send,
T: Send,
impl<T> Sync for Node<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Node<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Node<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,