|
|
|
@ -68,7 +68,8 @@ impl Word
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Create a new iterator over words from this sentance.
|
|
|
|
|
pub fn new_iter<'a>(from: &'a (impl AsRef<Sentance> +?Sized+'a)) -> impl Iterator<Item = &'a Self>
|
|
|
|
|
pub fn new_iter<'a, 'b>(from: &'a (impl AsRef<Sentance> +?Sized+'b)) -> impl Iterator<Item = &'a Self>
|
|
|
|
|
where 'b: 'a
|
|
|
|
|
{
|
|
|
|
|
let from = from.as_ref();
|
|
|
|
|
from.split_inclusive(is_word_boundary)
|
|
|
|
|