pub struct GraphClipReport {
pub clipped: bool,
pub nodes_in: usize,
pub projected: usize,
pub layout_nan: usize,
pub nodes_culled: usize,
pub edges_culled: usize,
pub nodes_drawn: usize,
pub edges_drawn: usize,
pub lit_px: usize,
pub ink_outside_rect: usize,
pub geom_ink_outside_rect: usize,
}Expand description
The observable state of one clipped graph render — the return value the tests
assert on directly (the EMIT-DOCTRINE: prove correctness from the return wherever
it can be seen). Carries the per-stage counts the chain produced. Serialized via
GraphClipReport::state_json.
Fields§
§clipped: boolWhether the production scissor was applied (true) or the bug variant ran.
nodes_in: usize§projected: usize§layout_nan: usize§nodes_culled: usize§edges_culled: usize§nodes_drawn: usize§edges_drawn: usize§lit_px: usize§ink_outside_rect: usizePainted-pixel count that lands outside the widget rect. 0 is the
fix invariant; > 0 is the bug.
geom_ink_outside_rect: usizeGeometry-level escape count (clipped-polygon vertices still outside the rect).
Implementations§
Source§impl GraphClipReport
impl GraphClipReport
Sourcepub fn state_json(&self) -> Value
pub fn state_json(&self) -> Value
The component’s state_json() (the spec’s discoverable observable). A test
reads these fields back instead of an emit row wherever the value is visible.
Trait Implementations§
Source§impl Clone for GraphClipReport
impl Clone for GraphClipReport
Source§fn clone(&self) -> GraphClipReport
fn clone(&self) -> GraphClipReport
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 moreSource§impl Debug for GraphClipReport
impl Debug for GraphClipReport
Source§impl PartialEq for GraphClipReport
impl PartialEq for GraphClipReport
impl StructuralPartialEq for GraphClipReport
Auto Trait Implementations§
impl Freeze for GraphClipReport
impl RefUnwindSafe for GraphClipReport
impl Send for GraphClipReport
impl Sync for GraphClipReport
impl Unpin for GraphClipReport
impl UnsafeUnpin for GraphClipReport
impl UnwindSafe for GraphClipReport
Blanket Implementations§
impl<T> Allocation for T
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