pub struct Drawing {
pub shapes: Vec<Shape>,
pub shape_layers: Vec<i32>,
pub shape_classes: Vec<Option<String>>,
pub bbox: Bbox,
pub prelude_thick: f64,
pub canvas_margin: CanvasMargin,
pub anims: Vec<Anim>,
pub diagnostics: Vec<String>,
pub warnings: Vec<Diagnostic>,
}Expand description
A fully evaluated drawing.
Fields§
§shapes: Vec<Shape>§shape_layers: Vec<i32>Render layer per shape. Lower layers are emitted first; equal layers keep source order and shape ids stable.
shape_classes: Vec<Option<String>>rpic extension: CSS class hook per shape, emitted on the shape’s
<g id="sN"> group. Inert unless the host document styles it; None
keeps the group byte-identical to classic output.
bbox: Bbox§prelude_thick: f64Global linethick in points after picture-wide sizing, used only for
dpic-style backend prelude padding. Per-shape strokes keep their own
unscaled point thickness.
canvas_margin: CanvasMarginExtra canvas whitespace in inches. This is an rpic extension inspired by Pikchr: it affects native backend framing only, not pic geometry.
anims: Vec<Anim>§diagnostics: Vec<String>Lines emitted by pic print statements, without trailing newlines.
warnings: Vec<Diagnostic>Non-fatal compiler warnings for accepted but likely unintended input.
Trait Implementations§
impl StructuralPartialEq for Drawing
Auto Trait Implementations§
impl Freeze for Drawing
impl RefUnwindSafe for Drawing
impl Send for Drawing
impl Sync for Drawing
impl Unpin for Drawing
impl UnsafeUnpin for Drawing
impl UnwindSafe for Drawing
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