[][src]Struct hyphenation::extended::Extended

pub struct Extended {
    pub exceptions: Exceptions,
    pub minima: (usize, usize),
    // some fields omitted
}

A dictionary for extended Knuth–Liang hyphenation, based on the strategy described by Németh in "Automatic non-standard hyphenation in OpenOffice.org".

It comprises the working language, the set of extended patterns and exceptions, and the character boundaries for hyphenation.

Fields

exceptions: Exceptionsminima: (usize, usize)

The minimum number of chars from the start and end of a word where breaks may not occur.

Implementations

impl Extended[src]

pub fn language(&self) -> Language[src]

The language for which this dictionary can provide hyphenation.

pub fn prefix_tallies(&'f self, query: &'q [u8]) -> PrefixTallies<'f, 'q, Tally>[src]

An iterator over the tallies associated to all prefixes of the query, including the query itself.

Trait Implementations

impl Debug for Extended[src]

impl<'de> Deserialize<'de> for Extended[src]

impl From<Builder> for Extended[src]

impl<'h> Hyphenator<'h> for Extended[src]

type Opportunity = (usize, Option<&'h Subregion>)

Plain representation of a word break.

type Exact = (usize, Option<Subregion>)

An owned opportunity used to specify and store the predetermined hyphenation of known words. Read more

impl Load for Extended[src]

impl<'d> Score<'d> for Extended[src]

type Value = (u8, Option<&'d Subregion>)

A value assigned to each index — which is to say, to each potential break between letters — to determine whether the string can be broken at that index. Read more

impl Serialize for Extended[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.