Enum mungos::options::CollationAlternate
source · [−]#[non_exhaustive]
pub enum CollationAlternate {
NonIgnorable,
Shifted,
}
Expand description
Setting that determines whether collation should consider whitespace and punctuation as base characters for purposes of comparison.
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.
NonIgnorable
Whitespace and punctuation are considered base characters.
Shifted
Whitespace and punctuation are not considered base characters and are only distinguished at strength levels greater than 3.
Implementations
sourceimpl CollationAlternate
impl CollationAlternate
sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns this CollationAlternate
as a &'static str
.
Trait Implementations
sourceimpl Clone for CollationAlternate
impl Clone for CollationAlternate
sourcefn clone(&self) -> CollationAlternate
fn clone(&self) -> CollationAlternate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CollationAlternate
impl Debug for CollationAlternate
sourceimpl<'de> Deserialize<'de> for CollationAlternate
impl<'de> Deserialize<'de> for CollationAlternate
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<CollationAlternate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CollationAlternate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for CollationAlternate
impl Display for CollationAlternate
sourceimpl FromStr for CollationAlternate
impl FromStr for CollationAlternate
sourceimpl Serialize for CollationAlternate
impl Serialize for CollationAlternate
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CollationAlternate
Auto Trait Implementations
impl RefUnwindSafe for CollationAlternate
impl Send for CollationAlternate
impl Sync for CollationAlternate
impl Unpin for CollationAlternate
impl UnwindSafe for CollationAlternate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more