pub struct SvgMetrics {
pub records: usize,
pub operations: usize,
pub points: usize,
pub text_bytes: usize,
pub image_encoded_bytes: usize,
pub block_depth: usize,
pub svg_elements: usize,
pub render_work: usize,
pub svg_bytes: usize,
pub bounds_work: usize,
}Expand description
Deterministic work and size counters reported on every SvgArtifact.
Fields§
§records: usizeNumber of Plotter-IR records traversed.
operations: usizeNumber of drawing operations traversed.
points: usizeTotal polyline/polygon/arc vertices processed.
text_bytes: usizeTotal UTF-8 bytes of rendered text strings.
image_encoded_bytes: usizeTotal base64 bytes of embedded raster images.
block_depth: usizeMaximum nested StartBlock / EndBlock depth observed.
svg_elements: usizeNumber of SVG elements emitted.
render_work: usizeByte-weighted rendering work counter.
svg_bytes: usizeFinal serialized SVG byte length.
bounds_work: usizeOperation-weighted bounds calculation counter.
Trait Implementations§
Source§impl Clone for SvgMetrics
impl Clone for SvgMetrics
Source§fn clone(&self) -> SvgMetrics
fn clone(&self) -> SvgMetrics
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 moreimpl Copy for SvgMetrics
Source§impl Debug for SvgMetrics
impl Debug for SvgMetrics
impl Eq for SvgMetrics
Source§impl PartialEq for SvgMetrics
impl PartialEq for SvgMetrics
impl StructuralPartialEq for SvgMetrics
Auto Trait Implementations§
impl Freeze for SvgMetrics
impl RefUnwindSafe for SvgMetrics
impl Send for SvgMetrics
impl Sync for SvgMetrics
impl Unpin for SvgMetrics
impl UnsafeUnpin for SvgMetrics
impl UnwindSafe for SvgMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.