[][src]Struct spandex_hyphenation::hyphenator::Word

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

text: &'t strbreaks: Vec<Break>

Trait Implementations

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

type Iter = Segments<'t, Cloned<Iter<'t, usize>>>

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

type Item = String

The type of the elements being iterated over.

type IntoIter = Hyphenating<'t, Segments<'t, IntoIter<usize>>>

Which kind of iterator are we turning this into?

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

type Item = String

The type of the elements being iterated over.

type IntoIter = Hyphenating<'t, SegmentsExt<'t, IntoIter<(usize, Option<&'t Subregion>)>>>

Which kind of iterator are we turning this into?

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

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

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

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

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

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

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

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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