pub struct SearchMatch {
pub start: usize,
pub end: usize,
}Expand description
A match returned by the search APIs, expressed as a half-open character range.
Fields§
§start: usizeInclusive start character offset.
end: usizeExclusive end character offset.
Implementations§
Trait Implementations§
Source§impl Clone for SearchMatch
impl Clone for SearchMatch
Source§fn clone(&self) -> SearchMatch
fn clone(&self) -> SearchMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchMatch
impl Debug for SearchMatch
Source§impl PartialEq for SearchMatch
impl PartialEq for SearchMatch
impl Copy for SearchMatch
impl Eq for SearchMatch
impl StructuralPartialEq for SearchMatch
Auto Trait Implementations§
impl Freeze for SearchMatch
impl RefUnwindSafe for SearchMatch
impl Send for SearchMatch
impl Sync for SearchMatch
impl Unpin for SearchMatch
impl UnwindSafe for SearchMatch
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