Struct grep_searcher::SinkFinish[][src]

pub struct SinkFinish { /* fields omitted */ }

Summary data reported at the end of a search.

This reports data such as the total number of bytes searched and the absolute offset of the first occurrence of binary data, if any were found.

A searcher that stops early because of an error does not call finish. A searcher that stops early because the Sink implementor instructed it to will still call finish.

Methods

impl SinkFinish
[src]

Return the total number of bytes searched.

If binary detection is enabled and if binary data was found, then this returns the absolute byte offset of the first detected byte of binary data.

Note that since this is an absolute byte offset, it cannot be relied upon to index into any addressable memory.

Trait Implementations

impl Clone for SinkFinish
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SinkFinish
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for SinkFinish

impl Sync for SinkFinish