pub struct ElementCountNode {
pub kind: ElementNodeKind,
pub id: usize,
pub name: String,
pub span: Option<Span>,
pub base_count: usize,
pub adjustment: isize,
pub count: usize,
pub children: Vec<ElementCountNode>,
}Expand description
One node’s contribution, including its nested WIR provenance.
Fields§
§kind: ElementNodeKind§id: usizeThe arena index of the represented WIR node. Rule nodes use the rule arena, action nodes use the action arena, and value nodes use the value arena. Synthetic condition nodes use the condition’s value index.
name: String§span: Option<Span>§base_count: usizeThe contribution before children and adjustment rules.
adjustment: isizeThe local adjustment from the canonical model, such as a top-level argument reduction or hero-pair surcharge.
count: usizeThe complete contribution of this node and its children.
children: Vec<ElementCountNode>Trait Implementations§
Source§impl Clone for ElementCountNode
impl Clone for ElementCountNode
Source§fn clone(&self) -> ElementCountNode
fn clone(&self) -> ElementCountNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElementCountNode
impl RefUnwindSafe for ElementCountNode
impl Send for ElementCountNode
impl Sync for ElementCountNode
impl Unpin for ElementCountNode
impl UnsafeUnpin for ElementCountNode
impl UnwindSafe for ElementCountNode
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