pub struct Hyphenator {
pub glyph: ShapedGlyph,
pub language: [u8; 2],
}Expand description
Everything line wrapping needs to hyphenate: the pre-shaped hyphen
glyph to append at a break and the ISO 639-1 language for the
dictionary. Passed as Some only when hyphenation is enabled.
Fields§
§glyph: ShapedGlyphHyphen (-) glyph in the run’s font, appended at hyphenated breaks.
language: [u8; 2]ISO 639-1 language code for the Knuth-Liang dictionary.
Auto Trait Implementations§
impl Freeze for Hyphenator
impl RefUnwindSafe for Hyphenator
impl Send for Hyphenator
impl Sync for Hyphenator
impl Unpin for Hyphenator
impl UnsafeUnpin for Hyphenator
impl UnwindSafe for Hyphenator
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