pub struct LineSolution {
pub break_item: usize,
pub adjustment_ratio: f64,
pub is_hyphenated: bool,
}Expand description
The solution for one line: where it breaks and how much the glue adjusts.
Fields§
§break_item: usizeIndex into the items array where this line ends (the break item).
adjustment_ratio: f64How much glue was stretched (positive) or shrunk (negative). Range roughly -1.0 to tolerance.
is_hyphenated: boolWhether this line ends with a hyphen.
Trait Implementations§
Source§impl Clone for LineSolution
impl Clone for LineSolution
Source§fn clone(&self) -> LineSolution
fn clone(&self) -> LineSolution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LineSolution
impl RefUnwindSafe for LineSolution
impl Send for LineSolution
impl Sync for LineSolution
impl Unpin for LineSolution
impl UnsafeUnpin for LineSolution
impl UnwindSafe for LineSolution
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