Struct gmime::FilterBest [−]
pub struct FilterBest(_, _);
A filter for calculating the best encoding and/or charset to encode the data passed through it.
Implements
Methods
impl FilterBest[src]
impl FilterBestpub fn new(flags: FilterBestFlags) -> FilterBest[src]
pub fn new(flags: FilterBestFlags) -> FilterBestCreates 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
impl Clone for FilterBestfn clone(&self) -> FilterBest
fn clone(&self) -> FilterBestReturns 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)Performs copy-assignment from source. Read more
impl Debug for FilterBest
impl Debug for FilterBestfn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for FilterBest
impl Hash for FilterBestfn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl StaticType for FilterBest
impl StaticType for FilterBestfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for FilterBest
impl<T: IsA<Object>> PartialEq<T> for FilterBestfn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for FilterBest
impl Eq for FilterBestimpl IsA<Filter> for FilterBest
impl IsA<Filter> for FilterBestimpl IsA<Object> for FilterBest
impl IsA<Object> for FilterBestAuto Trait Implementations
impl !Send for FilterBest
impl !Send for FilterBestimpl !Sync for FilterBest
impl !Sync for FilterBest