pub struct Hyphenation {
pub language: [u8; 2],
}Expand description
Hyphenation settings for line wrapping.
Presence (Some) enables hyphenation; the language selects the
Knuth-Liang dictionary. Soft hyphens (U+00AD) always break and render a
hyphen when enabled, regardless of language; dictionary hyphenation
applies only when the language’s patterns are compiled in (otherwise it
silently falls back to soft-hyphen-only).
Fields§
§language: [u8; 2]ISO 639-1 language code, e.g. *b"en", *b"fr", *b"de".
Implementations§
Trait Implementations§
Source§impl Clone for Hyphenation
impl Clone for Hyphenation
Source§fn clone(&self) -> Hyphenation
fn clone(&self) -> Hyphenation
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 Hyphenation
Source§impl Debug for Hyphenation
impl Debug for Hyphenation
Source§impl Default for Hyphenation
impl Default for Hyphenation
impl Eq for Hyphenation
Source§impl PartialEq for Hyphenation
impl PartialEq for Hyphenation
impl StructuralPartialEq for Hyphenation
Auto Trait Implementations§
impl Freeze for Hyphenation
impl RefUnwindSafe for Hyphenation
impl Send for Hyphenation
impl Sync for Hyphenation
impl Unpin for Hyphenation
impl UnsafeUnpin for Hyphenation
impl UnwindSafe for Hyphenation
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