pub struct LineBreakParams {
pub available_width: f64,
pub ind_left: f64,
pub ind_right: f64,
pub ind_first_line: f64,
pub ind_hanging: f64,
pub tab_stops: Vec<TabStop>,
pub line_spacing: LineSpacing,
pub jc: Option<Align>,
pub wrap: bool,
pub line_prefix_widths: Vec<f64>,
pub line_suffix_widths: Vec<f64>,
}Expand description
Parameters for line breaking.
Fields§
§available_width: f64Total available width (page width minus margins).
ind_left: f64Left indentation in points.
ind_right: f64Right indentation in points.
ind_first_line: f64First line indent in points (positive = indent, 0 if hanging).
ind_hanging: f64Hanging indent in points (positive = text lines indented relative to first).
tab_stops: Vec<TabStop>Tab stops.
line_spacing: LineSpacingLine spacing rule and value.
jc: Option<Align>Paragraph justification.
wrap: boolWhether width overflow may create automatic line breaks.
line_prefix_widths: Vec<f64>Extra width kept clear at the start of individual lines, by line index.
This is how a floating drawing pushes text aside. An empty vector, the default, reserves nothing and reproduces unwrapped line breaking exactly.
line_suffix_widths: Vec<f64>Extra width kept clear at the end of individual lines, by line index.
Trait Implementations§
Source§impl Clone for LineBreakParams
impl Clone for LineBreakParams
Source§fn clone(&self) -> LineBreakParams
fn clone(&self) -> LineBreakParams
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 LineBreakParams
impl Debug for LineBreakParams
Auto Trait Implementations§
impl Freeze for LineBreakParams
impl RefUnwindSafe for LineBreakParams
impl Send for LineBreakParams
impl Sync for LineBreakParams
impl Unpin for LineBreakParams
impl UnsafeUnpin for LineBreakParams
impl UnwindSafe for LineBreakParams
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