pub struct LogNeedle { /* private fields */ }Expand description
A query, ready to find.
Implementations§
Source§impl LogNeedle
impl LogNeedle
Sourcepub fn new(query: &str) -> Result<LogNeedle, String>
pub fn new(query: &str) -> Result<LogNeedle, String>
The needle for query, or why it cannot be one.
Sourcepub fn mark(&self, line: &mut StyledLine) -> bool
pub fn mark(&self, line: &mut StyledLine) -> bool
Whether line holds the query; if so, its runs are split so each stretch of matches is one marked run.
Past RUNS_MAX runs the rest of the line is counted in omitted, not shown.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LogNeedle
impl Freeze for LogNeedle
impl Move for LogNeedle
impl RefUnwindSafe for LogNeedle
impl Send for LogNeedle
impl Sync for LogNeedle
impl Unpin for LogNeedle
impl UnsafeUnpin for LogNeedle
impl UnwindSafe for LogNeedle
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