pub struct SharedAlphaNode {
pub node: AlphaNode,
pub rule_indices: Vec<usize>,
pub ref_count: usize,
}Expand description
Shared Alpha Node Multiple rules can reference the same shared alpha node
Fields§
§node: AlphaNodeThe actual alpha node
rule_indices: Vec<usize>Rule indices that use this node
ref_count: usizeReference count
Implementations§
pub fn new(node: AlphaNode, rule_idx: usize) -> Self
pub fn add_reference(&mut self, rule_idx: usize)
pub fn remove_reference(&mut self, rule_idx: usize)
Trait Implementations§
Source§fn clone(&self) -> SharedAlphaNode
fn clone(&self) -> SharedAlphaNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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