pub enum Mark {
Text {
text: String,
x: f64,
y: f64,
cap: f64,
},
Box {
x: f64,
y: f64,
size: f64,
},
Rule {
x0: f64,
x1: f64,
y: f64,
},
Line(Vec<[f64; 2]>),
}Expand description
One mark of a band, in millimetres from the band’s top-left corner.
Variants§
Text
A run of text whose line box starts at (x, y), cap its cap height.
Box
An empty square to tick or mark, its top-left corner at (x, y).
Rule
A line to write on, from x0 to x1 at height y.
Line(Vec<[f64; 2]>)
Any other stroke: a write-in box’s sides and top, the heading’s rule.
Trait Implementations§
impl StructuralPartialEq for Mark
Auto Trait Implementations§
impl Forget for Mark
impl Freeze for Mark
impl Move for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnsafeUnpin for Mark
impl UnwindSafe for Mark
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