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 for SinkContextKind
impl PartialEq for SinkContextKind
impl Eq for SinkContextKind
impl StructuralPartialEq for SinkContextKind
Auto Trait Implementations§
impl Freeze for SinkContextKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)