Struct hyphenation::hyphenator::Word [−][src]
A hyphenated word carrying valid breaks.
The Word
can be borrowed or moved for iteration with iter()
and
into_iter()
respectively.
Fields
text: &'t str
breaks: Vec<Break>
Trait Implementations
impl<'t, Break: Clone> Clone for Word<'t, Break>
[src]
impl<'t, Break: Clone> Clone for Word<'t, Break>
fn clone(&self) -> Word<'t, Break>
[src]
fn clone(&self) -> Word<'t, Break>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'t, Break: Debug> Debug for Word<'t, Break>
[src]
impl<'t, Break: Debug> Debug for Word<'t, Break>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'t, Break: PartialEq> PartialEq for Word<'t, Break>
[src]
impl<'t, Break: PartialEq> PartialEq for Word<'t, Break>
fn eq(&self, other: &Word<'t, Break>) -> bool
[src]
fn eq(&self, other: &Word<'t, Break>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Word<'t, Break>) -> bool
[src]
fn ne(&self, other: &Word<'t, Break>) -> bool
This method tests for !=
.
impl<'t, Break: Eq> Eq for Word<'t, Break>
[src]
impl<'t, Break: Eq> Eq for Word<'t, Break>
impl<'t, Break: Hash> Hash for Word<'t, Break>
[src]
impl<'t, Break: Hash> Hash for Word<'t, Break>
fn hash<__HBreak: Hasher>(&self, state: &mut __HBreak)
[src]
fn hash<__HBreak: Hasher>(&self, state: &mut __HBreak)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<'t> Iter<'t> for Word<'t, usize>
[src]
impl<'t> Iter<'t> for Word<'t, usize>
type Iter = Segments<'t, Cloned<Iter<'t, usize>>>
ⓘImportant traits for Hyphenating<'m, I>fn iter(&'t self) -> Hyphenating<'t, Self::Iter>
[src]
ⓘImportant traits for Hyphenating<'m, I>
fn iter(&'t self) -> Hyphenating<'t, Self::Iter>
impl<'t> IntoIterator for Word<'t, usize>
[src]
impl<'t> IntoIterator for Word<'t, usize>
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?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'t> IntoIterator for Word<'t, (usize, Option<&'t Subregion>)>
[src]
impl<'t> IntoIterator for Word<'t, (usize, Option<&'t Subregion>)>