struct Suffix {
pos: usize,
period: usize,
}
Expand description
A suffix extracted from a needle along with its period.
Fields§
§pos: usize
The starting position of this suffix.
If this is a forward suffix, then &bytes[pos..]
can be used. If this
is a reverse suffix, then &bytes[..pos]
can be used. That is, for
forward suffixes, this is an inclusive starting position, where as for
reverse suffixes, this is an exclusive ending position.
period: usize
The period of this suffix.
Note that this is NOT necessarily the period of the string from which this suffix comes from. (It is always less than or equal to the period of the original string.)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Suffix
impl RefUnwindSafe for Suffix
impl Send for Suffix
impl Sync for Suffix
impl Unpin for Suffix
impl UnwindSafe for Suffix
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