pub struct HyphenationPattern {
pub chars: Vec<char>,
pub levels: Vec<u8>,
}Expand description
A compiled hyphenation pattern.
TeX patterns encode inter-character hyphenation levels as digits interleaved
with characters. For example, "hy3p" means: at the position between y
and p, the level is 3. Odd levels allow breaks; even levels forbid them.
Fields§
§chars: Vec<char>The alphabetic characters of the pattern (lowercase, no digits).
levels: Vec<u8>Levels at each inter-character position. Length = chars.len() + 1.
Index 0 is before the first char, index n is after the last char.
Trait Implementations§
Source§impl Clone for HyphenationPattern
impl Clone for HyphenationPattern
Source§fn clone(&self) -> HyphenationPattern
fn clone(&self) -> HyphenationPattern
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 HyphenationPattern
impl Debug for HyphenationPattern
Source§impl PartialEq for HyphenationPattern
impl PartialEq for HyphenationPattern
impl Eq for HyphenationPattern
impl StructuralPartialEq for HyphenationPattern
Auto Trait Implementations§
impl Freeze for HyphenationPattern
impl RefUnwindSafe for HyphenationPattern
impl Send for HyphenationPattern
impl Sync for HyphenationPattern
impl Unpin for HyphenationPattern
impl UnsafeUnpin for HyphenationPattern
impl UnwindSafe for HyphenationPattern
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.