pub struct PlacedLine {
pub text: String,
pub x: f32,
pub top: f32,
pub baseline: f32,
pub width: f32,
}Expand description
A line of text at its position on the page.
Fields§
§text: StringThe text of the line, without the line break.
x: f32Left edge.
top: f32Top of the line box.
baseline: f32Baseline.
width: f32Width of the text.
Trait Implementations§
Source§impl Clone for PlacedLine
impl Clone for PlacedLine
Source§fn clone(&self) -> PlacedLine
fn clone(&self) -> PlacedLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlacedLine
impl Debug for PlacedLine
Source§impl PartialEq for PlacedLine
impl PartialEq for PlacedLine
impl StructuralPartialEq for PlacedLine
Auto Trait Implementations§
impl Freeze for PlacedLine
impl RefUnwindSafe for PlacedLine
impl Send for PlacedLine
impl Sync for PlacedLine
impl Unpin for PlacedLine
impl UnsafeUnpin for PlacedLine
impl UnwindSafe for PlacedLine
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