[][src]Struct kl_hyphenate::iter::Hyphenating

pub struct Hyphenating<'m, I> { /* fields omitted */ }

A hyphenating iterator that breaks text into segments delimited by word breaks, and marks them with a hyphen where appropriate.

Such segments generally coincide with orthographic syllables, albeit within the limited accuracy of Knuth-Liang hyphenation.

Implementations

impl<'m, I, S> Hyphenating<'m, I> where
    I: Iterator<Item = S>,
    S: AsRef<str>, 
[src]

pub fn segments(self) -> I[src]

Turn into an iterator that yields word segments only, without inserting a hyphen or other mark before breaks.

pub fn mark_with(&mut self, mark: &'m str)[src]

Set the mark that will be inserted before word breaks.

pub fn new(iter: I) -> Self[src]

Build a hyphenating iterator from an iterator over string segments.

Trait Implementations

impl<'m, I: Clone> Clone for Hyphenating<'m, I>[src]

impl<'m, I: Debug> Debug for Hyphenating<'m, I>[src]

impl<'m, I, S> ExactSizeIterator for Hyphenating<'m, I> where
    I: Iterator<Item = S> + ExactSizeIterator,
    S: AsRef<str>, 
[src]

impl<'m, I, S> Iterator for Hyphenating<'m, I> where
    I: Iterator<Item = S> + ExactSizeIterator,
    S: AsRef<str>, 
[src]

type Item = String

The type of the elements being iterated over.

Auto Trait Implementations

impl<'m, I> RefUnwindSafe for Hyphenating<'m, I> where
    I: RefUnwindSafe

impl<'m, I> Send for Hyphenating<'m, I> where
    I: Send

impl<'m, I> Sync for Hyphenating<'m, I> where
    I: Sync

impl<'m, I> Unpin for Hyphenating<'m, I> where
    I: Unpin

impl<'m, I> UnwindSafe for Hyphenating<'m, I> where
    I: UnwindSafe

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> From<T> for T[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.