Struct grep_searcher::Encoding[][src]

pub struct Encoding(_);

An encoding to use when searching.

An encoding can be used to configure a SearcherBuilder to transcode source data from an encoding to UTF-8 before searching.

An Encoding will always be cheap to clone.

Methods

impl Encoding
[src]

Create a new encoding for the specified label.

The encoding label provided is mapped to an encoding via the set of available choices specified in the Encoding Standard. If the given label does not correspond to a valid encoding, then this returns an error.

Trait Implementations

impl Clone for Encoding
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Encoding
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Encoding

impl Sync for Encoding