pub struct Config {
pub line_width: f64,
pub tolerance: f64,
pub hyphen_penalty: f64,
pub double_hyphen_demerits: f64,
pub fitness_demerits: f64,
}Expand description
Configuration for the Knuth-Plass algorithm.
Fields§
§line_width: f64§tolerance: f64How much lines are allowed to stretch/shrink. Higher = more tolerance.
hyphen_penalty: f64Penalty for hyphenating a word.
double_hyphen_demerits: f64Extra demerits for two consecutive hyphenated lines.
fitness_demerits: f64Extra demerits for adjacent lines with very different tightness.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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