pub trait Draw: Send {
// Required method
fn draw(&self, canvas: &mut Canvas) -> Result<()>;
}Expand description
Something that paints itself onto a Canvas. Send so a
Content::Custom value never blocks a Pdf from crossing a thread
boundary.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Draw for Image
impl Draw for Paragraph
Tw (word spacing) is persistent text state that BeginText does not
clear, so a stretch an earlier line left active must be reset before the
first following line that does not itself stretch — not only once, at
the very end.