pub struct Rect {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Expand description
A bounding rectangle for text placement.
(x, y) is the upper-left corner; text flows top-to-bottom.
All values are in PDF points.
Fields§
§x: f64Left edge in PDF points (origin at top-left of the layout area).
y: f64Top edge in PDF points (origin at top-left of the layout area).
width: f64Width in PDF points.
height: f64Height in PDF points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnsafeUnpin for Rect
impl UnwindSafe for Rect
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