pub struct LineBreakOptions {
pub hyphenate: bool,
pub patterns: Patterns,
pub justify: bool,
pub inter_character: bool,
pub hanging: HangingPunctuation,
pub preformatted: bool,
}Expand description
How a paragraph is broken and filled. The defaults are ragged right, no hyphenation, and no mark hanging past the measure.
Fields§
§hyphenate: boolWhether hyphens: auto is in force.
patterns: PatternsWhich language’s syllables hyphenate breaks at.
justify: boolWhether the lines fill the measure, from
text-align: justify. Left, right and centred text all break
the same way; where the line then sits is the caller’s.
inter_character: boolWhether justification also opens the space between letters,
from text-justify: inter-character.
hanging: HangingPunctuationWhich marks hang past the measure.
preformatted: boolWhether the text is preformatted: it breaks at its own newlines and nowhere else, and its spaces stand where they were written. A code block is set this way.
Trait Implementations§
Source§impl Clone for LineBreakOptions
impl Clone for LineBreakOptions
Source§fn clone(&self) -> LineBreakOptions
fn clone(&self) -> LineBreakOptions
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 moreimpl Copy for LineBreakOptions
Source§impl Debug for LineBreakOptions
impl Debug for LineBreakOptions
Source§impl Default for LineBreakOptions
impl Default for LineBreakOptions
Source§fn default() -> LineBreakOptions
fn default() -> LineBreakOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for LineBreakOptions
impl PartialEq for LineBreakOptions
impl StructuralPartialEq for LineBreakOptions
Auto Trait Implementations§
impl Freeze for LineBreakOptions
impl RefUnwindSafe for LineBreakOptions
impl Send for LineBreakOptions
impl Sync for LineBreakOptions
impl Unpin for LineBreakOptions
impl UnsafeUnpin for LineBreakOptions
impl UnwindSafe for LineBreakOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.