Trait gmime::FilterBestExt[][src]

pub trait FilterBestExt {
    fn charset(&self) -> Option<String>;
fn encoding(&self, constraint: EncodingConstraint) -> ContentEncoding; }

Trait containing all FilterBest methods.

Implementors

FilterBest

Required Methods

Calculates the best charset for encoding the stream filtered through the self filter.

Returns

a pointer to a string containing the name of the charset best suited for the text filtered through self.

Calculates the most efficient Content-Transfer-Encoding for the stream filtered through self that fits within the encoding constraint.

constraint

a EncodingConstraint

Returns

the best encoding for the stream filtered by self.

Implementors