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 FilterBest
pub fn new(flags: FilterBestFlags) -> FilterBest
[src]
pub fn new(flags: FilterBestFlags) -> FilterBest
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
impl Clone for FilterBest
fn clone(&self) -> FilterBest
fn clone(&self) -> FilterBest
Returns 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 FilterBest
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for FilterBest
impl Hash for FilterBest
fn 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 FilterBest
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for FilterBest
impl<T: IsA<Object>> PartialEq<T> for FilterBest
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for FilterBest
impl Eq for FilterBest
impl IsA<Filter> for FilterBest
impl IsA<Filter> for FilterBest
impl IsA<Object> for FilterBest
impl IsA<Object> for FilterBest
Auto Trait Implementations
impl !Send for FilterBest
impl !Send for FilterBest
impl !Sync for FilterBest
impl !Sync for FilterBest