pub struct HyphenationConfig {
pub enabled: bool,
pub language: Option<String>,
pub min_word_length: Option<u32>,
pub min_before: Option<u32>,
pub min_after: Option<u32>,
pub max_consecutive: Option<u32>,
}Expand description
Hyphenation configuration.
Fields§
§enabled: boolWhether hyphenation is enabled.
language: Option<String>Language for hyphenation rules (BCP 47 tag).
min_word_length: Option<u32>Minimum word length to hyphenate.
min_before: Option<u32>Minimum characters before a hyphen.
min_after: Option<u32>Minimum characters after a hyphen.
max_consecutive: Option<u32>Maximum consecutive hyphenated lines.
Implementations§
Trait Implementations§
Source§impl Clone for HyphenationConfig
impl Clone for HyphenationConfig
Source§fn clone(&self) -> HyphenationConfig
fn clone(&self) -> HyphenationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HyphenationConfig
impl Debug for HyphenationConfig
Source§impl<'de> Deserialize<'de> for HyphenationConfig
impl<'de> Deserialize<'de> for HyphenationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HyphenationConfig
impl PartialEq for HyphenationConfig
Source§impl Serialize for HyphenationConfig
impl Serialize for HyphenationConfig
impl Eq for HyphenationConfig
impl StructuralPartialEq for HyphenationConfig
Auto Trait Implementations§
impl Freeze for HyphenationConfig
impl RefUnwindSafe for HyphenationConfig
impl Send for HyphenationConfig
impl Sync for HyphenationConfig
impl Unpin for HyphenationConfig
impl UnsafeUnpin for HyphenationConfig
impl UnwindSafe for HyphenationConfig
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,
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.