Trait gmime::FilterBestExt [−][src]
pub trait FilterBestExt {
fn charset(&self) -> Option<String>;
fn encoding(&self, constraint: EncodingConstraint) -> ContentEncoding;
}Required Methods
fn charset(&self) -> Option<String>
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.
fn encoding(&self, constraint: EncodingConstraint) -> ContentEncoding
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
impl<O: IsA<FilterBest>> FilterBestExt for O