pub struct Word<'a>(pub &'a str);Expand description
Tuple Fields
0: &'a strTrait Implementations
sourceimpl<'a> Ord for Word<'a>
impl<'a> Ord for Word<'a>
sourceimpl<'a> PartialOrd<Word<'a>> for Word<'a>
impl<'a> PartialOrd<Word<'a>> for Word<'a>
sourcefn partial_cmp(&self, other: &Word<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Word<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Step for Word<'_>
impl Step for Word<'_>
sourcefn steps_between(Self: &Self, Self: &Self) -> Option<usize>
fn steps_between(Self: &Self, Self: &Self) -> Option<usize>
step_trait)Returns the number of successor steps required to get from start to end. Read more
sourcefn forward_checked(Self: Self, count: usize) -> Option<Self>
fn forward_checked(Self: Self, count: usize) -> Option<Self>
step_trait)Returns the value that would be obtained by taking the successor
of self count times. Read more
sourcefn backward_checked(Self: Self, count: usize) -> Option<Self>
fn backward_checked(Self: Self, count: usize) -> Option<Self>
step_trait)Returns the value that would be obtained by taking the predecessor
of self count times. Read more
sourcefn forward(start: Self, count: usize) -> Self
fn forward(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the successor
of self count times. Read more
sourceunsafe fn forward_unchecked(start: Self, count: usize) -> Self
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the successor
of self count times. Read more
sourcefn backward(start: Self, count: usize) -> Self
fn backward(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the predecessor
of self count times. Read more
sourceunsafe fn backward_unchecked(start: Self, count: usize) -> Self
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
step_trait)Returns the value that would be obtained by taking the predecessor
of self count times. Read more
impl<'a> Copy for Word<'a>
impl<'a> Eq for Word<'a>
impl<'a> StructuralEq for Word<'a>
impl<'a> StructuralPartialEq for Word<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Word<'a>
impl<'a> Send for Word<'a>
impl<'a> Sync for Word<'a>
impl<'a> Unpin for Word<'a>
impl<'a> UnwindSafe for Word<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more