pub struct Trie<T> { /* private fields */ }Implementations§
Source§impl<T> Trie<T>
impl<T> Trie<T>
pub fn get(&self, key: &Path) -> Option<&T>
pub fn get_mut(&mut self, key: &Path) -> Option<&mut T>
pub fn get_ancestor_record(&self, key: &Path) -> Option<(&String, &Path, &T)>
pub fn get_ancestor_key(&self, key: &Path) -> Option<&String>
pub fn get_ancestor_path(&self, key: &Path) -> Option<&Path>
pub fn get_ancestor_value(&self, key: &Path) -> Option<&T>
pub fn insert(&mut self, key: Path, value: T)
pub fn remove(&mut self, key: &Path)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Trie<T>
impl<T> RefUnwindSafe for Trie<T>where
T: RefUnwindSafe,
impl<T> Send for Trie<T>where
T: Send,
impl<T> Sync for Trie<T>where
T: Sync,
impl<T> Unpin for Trie<T>
impl<T> UnwindSafe for Trie<T>where
T: 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