[−][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: Clone + Copy + PartialEq,
[src]
K: Clone + Copy + PartialEq,
pub fn new<P>(path: P, data: V) -> Self where
P: Vectorable<K>,
[src]
P: Vectorable<K>,
pub fn insert_with(
&mut self,
path: &mut Vec<K>,
data: Option<V>,
force_update: bool
) -> &mut Self
[src]
&mut self,
path: &mut Vec<K>,
data: Option<V>,
force_update: bool
) -> &mut Self
pub fn add_node_with(
&mut self,
path: &mut Vec<K>,
data: Option<V>,
i: usize,
force_update: bool
) -> &mut Self
[src]
&mut self,
path: &mut Vec<K>,
data: Option<V>,
i: usize,
force_update: bool
) -> &mut Self
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> Radix<K, V> for Node<K, V> where
K: Clone + Copy + PartialEq,
[src]
K: Clone + Copy + PartialEq,
fn remove<P>(&mut self, path: P) where
P: Vectorable<K>,
[src]
P: Vectorable<K>,
fn insert<P>(&mut self, path: P, data: V) -> &mut Self where
P: Vectorable<K>,
[src]
P: Vectorable<K>,
fn find<P>(&self, path: P) -> Option<&Self> where
P: Vectorable<K>,
[src]
P: Vectorable<K>,
fn add_node<P>(&mut self, path: P, data: V) -> &mut Self where
P: Vectorable<K>,
[src]
P: Vectorable<K>,
fn find_node<P>(&self, path: P) -> Option<&Self> where
P: Vectorable<K>,
[src]
P: Vectorable<K>,
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]
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,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,