Enum grep_searcher::SinkContextKind
source · pub enum SinkContextKind {
Before,
After,
Other,
}
Expand description
The type of context reported by a searcher.
Variants§
Before
The line reported occurred before a match.
After
The line reported occurred after a match.
Other
Any other type of context reported, e.g., as a result of a searcher’s “passthru” mode.
Trait Implementations§
source§impl Clone for SinkContextKind
impl Clone for SinkContextKind
source§fn clone(&self) -> SinkContextKind
fn clone(&self) -> SinkContextKind
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 SinkContextKind
impl Debug for SinkContextKind
source§impl PartialEq<SinkContextKind> for SinkContextKind
impl PartialEq<SinkContextKind> for SinkContextKind
source§fn eq(&self, other: &SinkContextKind) -> bool
fn eq(&self, other: &SinkContextKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SinkContextKind
impl StructuralEq for SinkContextKind
impl StructuralPartialEq for SinkContextKind
Auto Trait Implementations§
impl RefUnwindSafe for SinkContextKind
impl Send for SinkContextKind
impl Sync for SinkContextKind
impl Unpin for SinkContextKind
impl UnwindSafe for SinkContextKind
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