pub struct SvgForm { /* private fields */ }Available on crate feature
svg-import only.Expand description
Drawing compiled once into a Form XObject, placeable on any number of
pages.
A /Subtype /Form stream with its own /BBox and /Resources, held as a
single object in the document. Placing it writes one Do — so the same
logo on twenty pages is one copy of the content and twenty references,
rather than twenty copies of the content.
Produced by EditDoc::compile_svg and placed by
Canvas::place_svg.
It carries no borrow of the session that made it, so a caller compiles
once and then places inside as many draw_page closures as they like.
Implementations§
Trait Implementations§
impl StructuralPartialEq for SvgForm
Auto Trait Implementations§
impl Freeze for SvgForm
impl RefUnwindSafe for SvgForm
impl Send for SvgForm
impl Sync for SvgForm
impl Unpin for SvgForm
impl UnsafeUnpin for SvgForm
impl UnwindSafe for SvgForm
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