pub struct KpBreakResult {
pub lines: Vec<String>,
pub total_cost: u64,
pub line_badness: Vec<u64>,
}Expand description
Result of optimal line breaking.
Fields§
§lines: Vec<String>The wrapped lines.
total_cost: u64Total cost (sum of badness + penalties).
line_badness: Vec<u64>Per-line badness values (for diagnostics).
Trait Implementations§
Source§impl Clone for KpBreakResult
impl Clone for KpBreakResult
Source§fn clone(&self) -> KpBreakResult
fn clone(&self) -> KpBreakResult
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 KpBreakResult
impl RefUnwindSafe for KpBreakResult
impl Send for KpBreakResult
impl Sync for KpBreakResult
impl Unpin for KpBreakResult
impl UnwindSafe for KpBreakResult
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