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 and its nested element-count analysis.
Fields§
§kind: ElementNodeKind§id: usizeAn opaque identity unique within this report. It is not a WIR or storage arena index and has no meaning across reports.
name: StringThe canonical Workshop or analysis name for this node.
span: Option<Span>The authored source span, when the program retained one.
base_count: usizeThe node-local contribution before child counts and adjustments.
adjustment: isizeThe signed node-local adjustment, such as a direct-argument reduction or hero-pair surcharge.
count: usizeThe node’s recursive count: base_count + adjustment + children.
children: Vec<ElementCountNode>Nested values, conditions, and actions in canonical source order.
Trait Implementations§
Source§impl Clone for ElementCountNode
impl Clone for ElementCountNode
Auto 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