Struct hyphenation::hyphenator::Word[][src]

pub struct Word<'t, Break> {
    pub text: &'t str,
    pub breaks: Vec<Break>,
}

A hyphenated word carrying valid breaks.

The Word can be borrowed or moved for iteration with iter() and into_iter() respectively.

Fields

Trait Implementations

impl<'t, Break: Clone> Clone for Word<'t, Break>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'t, Break: Debug> Debug for Word<'t, Break>
[src]

Formats the value using the given formatter. Read more

impl<'t, Break: PartialEq> PartialEq for Word<'t, Break>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'t, Break: Eq> Eq for Word<'t, Break>
[src]

impl<'t, Break: Hash> Hash for Word<'t, Break>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'t> Iter<'t> for Word<'t, usize>
[src]

Important traits for Hyphenating<'m, I>

impl<'t> IntoIterator for Word<'t, usize>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'t> IntoIterator for Word<'t, (usize, Option<&'t Subregion>)>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<'t, Break> Send for Word<'t, Break> where
    Break: Send

impl<'t, Break> Sync for Word<'t, Break> where
    Break: Sync