pub struct FilterBest(_, _);
A filter for calculating the best encoding and/or charset to encode
the data passed through it.
FilterBestExt
, FilterExt
Creates a new GMimeFilterBest filter. flags
are used to determine
which information to keep statistics of. If the
FilterBestFlags::Charset
bit is set, the filter will be able to
compute the best charset for encoding the stream of data
filtered. If the FilterBestFlags::Encoding
bit is set, the filter
will be able to compute the best Content-Transfer-Encoding for use
with the stream being filtered.
Note: In order for the FilterBestExt::charset
function to
work, the stream being filtered MUST already be encoded in UTF-8.
filter flags
a new best filter with flags flags
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Returns the type identifier of Self
.
[−]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
[−]
This method tests for !=
.