Enum imap::extensions::sort::SortCharset
source · Expand description
The character encoding to use for strings that are subject to a SortCriterion
.
Servers are only required to implement SortCharset::UsAscii
and SortCharset::Utf8
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Utf8
Strings are UTF-8 encoded.
UsAscii
Strings are encoded with ASCII.
Custom(Cow<'c, str>)
Strings are encoded using some other character set.
Note that this option is subject to server support for the specified character set.
Trait Implementations§
source§impl<'c> Clone for SortCharset<'c>
impl<'c> Clone for SortCharset<'c>
source§fn clone(&self) -> SortCharset<'c>
fn clone(&self) -> SortCharset<'c>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'c> Debug for SortCharset<'c>
impl<'c> Debug for SortCharset<'c>
source§impl<'c> Display for SortCharset<'c>
impl<'c> Display for SortCharset<'c>
source§impl<'c> Hash for SortCharset<'c>
impl<'c> Hash for SortCharset<'c>
source§impl<'c> PartialEq<SortCharset<'c>> for SortCharset<'c>
impl<'c> PartialEq<SortCharset<'c>> for SortCharset<'c>
source§fn eq(&self, other: &SortCharset<'c>) -> bool
fn eq(&self, other: &SortCharset<'c>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.