pub struct PathGraphEntry<V> { /* private fields */ }Implementations§
Source§impl<V> PathGraphEntry<V>
impl<V> PathGraphEntry<V>
pub fn insert(&mut self, path: &[u32], value: V)
pub fn insert_entry(&mut self, path: &[u32], entry: PathGraphEntry<V>)
pub fn remove(&mut self, path: &[u32]) -> Option<PathGraphEntry<V>>
pub fn find_path( &self, path: Vec<u32>, finder: &impl Fn(Option<&V>) -> bool, ) -> Option<Vec<u32>>
pub fn find( &self, path: Vec<u32>, finder: &impl Fn(Option<&V>) -> bool, ) -> Option<&V>
pub fn reduce<A>( &self, acc: &mut A, path: Vec<u32>, reducer: &impl Fn(Option<&V>, &[u32], &mut A) -> bool, ) -> bool
pub fn find_child_path( &self, path: Vec<u32>, target: &[u32], finder: &impl Fn(Option<&V>) -> bool, ) -> Option<Vec<u32>>
pub fn get(&self, path: &[u32]) -> Option<&V>
pub fn len(&self, path: &[u32]) -> Option<usize>
pub fn size(&self, size: &mut usize)
pub fn traverse( &self, target: &[u32], path: Vec<u32>, traverser: &mut impl FnMut(&[u32], &V), )
pub fn traverse_1_level( &self, target: &[u32], path: Vec<u32>, traverser: &mut impl FnMut(&[u32], &V), )
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for PathGraphEntry<V>where
V: Freeze,
impl<V> RefUnwindSafe for PathGraphEntry<V>where
V: RefUnwindSafe,
impl<V> Send for PathGraphEntry<V>where
V: Send,
impl<V> Sync for PathGraphEntry<V>where
V: Sync,
impl<V> Unpin for PathGraphEntry<V>where
V: Unpin,
impl<V> UnwindSafe for PathGraphEntry<V>where
V: UnwindSafe,
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