Struct gmime::FilterBest[]

pub struct FilterBest(_, _);
[]

A filter for calculating the best encoding and/or charset to encode the data passed through it.

Implements

FilterBestExt, FilterExt

Methods

impl FilterBest
[src]
[]

[]

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.

flags

filter flags

Returns

a new best filter with flags flags.

Trait Implementations

impl Clone for FilterBest
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl Debug for FilterBest
[+]

[]

Formats the value using the given formatter. Read more

impl Hash for FilterBest
[+]

[]

Feeds this value into the given [Hasher]. Read more

[]

Feeds a slice of this type into the given [Hasher]. Read more

impl StaticType for FilterBest
[+]

[]

Returns the type identifier of Self.

impl<T: IsA<Object>> PartialEq<T> for FilterBest
[+]

[]

This method tests for self and other values to be equal, and is used by ==. Read more

[]

This method tests for !=.

impl Eq for FilterBest

impl IsA<Filter> for FilterBest

impl IsA<Object> for FilterBest

Auto Trait Implementations

impl !Send for FilterBest

impl !Sync for FilterBest