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]
impl Encoding
pub fn new(label: &str) -> Result<Encoding, ConfigError>
[src]
pub fn new(label: &str) -> Result<Encoding, ConfigError>
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]
impl Clone for Encoding
fn clone(&self) -> Encoding
[src]
fn clone(&self) -> Encoding
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Encoding
[src]
impl Debug for Encoding