pub struct Match {
pub first_pos: usize,
pub second_pos: usize,
pub length: usize,
}Expand description
A structure representing a matching substring between two pieces of data.
Fields§
§first_pos: usizeStart of the string in the first piece of data.
second_pos: usizeStart of the string in the second piece of data.
length: usizeLength of the string.
Implementations§
Trait Implementations§
Source§impl Ord for Match
impl Ord for Match
Source§impl PartialOrd for Match
impl PartialOrd for Match
impl Copy for Match
impl Eq for Match
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
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