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
impl 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 Forget for Hyphenation
impl Freeze for Hyphenation
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.