Struct rg::search::SearchResult
source · pub struct SearchResult {
has_match: bool,
stats: Option<Stats>,
}
Expand description
The result of executing a search.
Generally speaking, the “result” of a search is sent to a printer, which writes results to an underlying writer such as stdout or a file. However, every search also has some aggregate statistics or meta data that may be useful to higher level routines.
Fields§
§has_match: bool
§stats: Option<Stats>
Implementations§
source§impl SearchResult
impl SearchResult
Trait Implementations§
source§impl Clone for SearchResult
impl Clone for SearchResult
source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a copy 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 SearchResult
impl Debug for SearchResult
source§impl Default for SearchResult
impl Default for SearchResult
source§fn default() -> SearchResult
fn default() -> SearchResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
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