pub struct Words { /* private fields */ }Expand description
A message split into numbered words.
Implementations§
Source§impl Words
impl Words
Sourcepub fn narrow(&self, span: Span, copied: &str) -> Option<Span>
pub fn narrow(&self, span: Span, copied: &str) -> Option<Span>
The words inside span that copied repeats, compared without case and without
the punctuation at either end of a word; None when they are not there.
Sourcepub fn only_place(&self, copied: &str) -> Option<Span>
pub fn only_place(&self, copied: &str) -> Option<Span>
Where in the whole message copied is repeated, when it is repeated in one place only.
Trait Implementations§
impl Eq for Words
impl StructuralPartialEq for Words
Auto Trait Implementations§
impl Freeze for Words
impl RefUnwindSafe for Words
impl Send for Words
impl Sync for Words
impl Unpin for Words
impl UnsafeUnpin for Words
impl UnwindSafe for Words
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.