pub struct NodeStore<T> { /* private fields */ }Implementations§
Source§impl<T> NodeStore<T>
impl<T> NodeStore<T>
pub fn new() -> Self
pub fn ref_count(&self) -> usize
pub fn count_type(&self, node_type: NodeType) -> usize
pub fn contains_type(&self, node_type: NodeType) -> bool
pub fn add(&self, values: Vec<T>)
pub fn insert<K>(&self, node_type: NodeType, values: Vec<K>)
pub fn map<F, K>(&self, mapper: F) -> Option<K>
pub fn map_by_type<F, K>(&self, node_type: NodeType, mapper: F) -> Option<K>
Trait Implementations§
Source§impl<T, F> Factory<F, Option<TreeNode<T>>> for NodeStore<T>
impl<T, F> Factory<F, Option<TreeNode<T>>> for NodeStore<T>
fn new_instance(&self, input: F) -> Option<TreeNode<T>>
Source§impl<T> Factory<NodeType, T> for NodeStore<T>
impl<T> Factory<NodeType, T> for NodeStore<T>
fn new_instance(&self, input: NodeType) -> T
Auto Trait Implementations§
impl<T> Freeze for NodeStore<T>
impl<T> RefUnwindSafe for NodeStore<T>
impl<T> Send for NodeStore<T>
impl<T> Sync for NodeStore<T>
impl<T> Unpin for NodeStore<T>
impl<T> UnsafeUnpin for NodeStore<T>
impl<T> UnwindSafe for NodeStore<T>
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