Struct hyphenation_commons::dictionary::Standard [−][src]
pub struct Standard { pub exceptions: Exceptions, pub minima: (usize, usize), // some fields omitted }
Expand description
A dictionary for standard Knuth–Liang hyphenation.
It comprises the working language, the pattern and exception sets, and the character boundaries for hyphenation.
Fields
exceptions: Exceptions
minima: (usize, usize)
The minimum number of char
s from the start and end of a word where
breaks may not occur.
Implementations
The language for which this dictionary can provide hyphenation.
pub fn prefix_tallies<'f, 'q>(
&'f self,
query: &'q [u8]
) -> PrefixTallies<'f, 'q, Vec<Locus>>ⓘNotable traits for PrefixTallies<'f, 'q, T>impl<'f, 'q, T> Iterator for PrefixTallies<'f, 'q, T> type Item = &'f T;
pub fn prefix_tallies<'f, 'q>(
&'f self,
query: &'q [u8]
) -> PrefixTallies<'f, 'q, Vec<Locus>>ⓘNotable traits for PrefixTallies<'f, 'q, T>impl<'f, 'q, T> Iterator for PrefixTallies<'f, 'q, T> type Item = &'f T;
Notable traits for PrefixTallies<'f, 'q, T>
impl<'f, 'q, T> Iterator for PrefixTallies<'f, 'q, T> type Item = &'f T;
An iterator over the tallies associated to all prefixes of the query, including the query itself.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Standard
impl UnwindSafe for Standard
Blanket Implementations
Mutably borrows from an owned value. Read more