[−][src]Struct radix_tree::Node
Fields
path: Vec<K>
data: Option<V>
indices: Vec<K>
nodes: Vec<Node<K, V>>
Methods
impl<K, V> Node<K, V> where
K: Copy + PartialEq + PartialOrd,
V: Clone,
[src]
K: Copy + PartialEq + PartialOrd,
V: Clone,
pub fn new<P: Vectorable<K>>(path: P, data: Option<V>) -> Self
[src]
pub fn insert_with<F>(
&mut self,
path: &mut Vec<K>,
data: Option<V>,
force_update: bool,
pos: F
) -> &mut Self where
F: Fn(&usize, &K, &Vec<K>) -> usize,
[src]
&mut self,
path: &mut Vec<K>,
data: Option<V>,
force_update: bool,
pos: F
) -> &mut Self where
F: Fn(&usize, &K, &Vec<K>) -> usize,
pub fn add_node_with<F>(
&mut self,
path: &mut Vec<K>,
data: Option<V>,
i: usize,
force_update: bool,
pos: F
) -> &mut Self where
F: Fn(&usize, &K, &Vec<K>) -> usize,
[src]
&mut self,
path: &mut Vec<K>,
data: Option<V>,
i: usize,
force_update: bool,
pos: F
) -> &mut Self where
F: Fn(&usize, &K, &Vec<K>) -> usize,
pub fn find_with(&self, path: &mut Vec<K>) -> Option<&Self>
[src]
pub fn find_node_with(&self, path: &mut Vec<K>, i: usize) -> Option<&Self>
[src]
Trait Implementations
impl<K, V, P: Vectorable<K>> Radix<K, V, P> for Node<K, V> where
K: Copy + PartialEq + PartialOrd,
V: Clone,
[src]
K: Copy + PartialEq + PartialOrd,
V: Clone,
fn remove(&mut self, path: P)
[src]
fn insert(&mut self, path: P, data: V) -> &mut Self
[src]
fn find(&self, path: P) -> Option<&Self>
[src]
fn add_node(&mut self, path: P, data: V) -> &mut Self
[src]
fn find_node(&self, path: P) -> Option<&Self>
[src]
impl<K: Clone, V: Clone> Clone for Node<K, V>
[src]
impl<K: PartialEq, V: PartialEq> PartialEq<Node<K, V>> for Node<K, V>
[src]
impl<K: Debug, V: Debug> Debug for Node<K, V>
[src]
impl<K, V> StructuralPartialEq for Node<K, V>
[src]
Auto Trait Implementations
impl<K, V> Send for Node<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Node<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Node<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Node<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
impl<K, V> RefUnwindSafe for Node<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,