Enum mongodb::options::CollationMaxVariable
source · [−]#[non_exhaustive]
pub enum CollationMaxVariable {
Punct,
Space,
}
Expand description
Field that determines up to which characters are considered ignorable when alternate: “shifted”.
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.
Punct
Both whitespace and punctuation are “ignorable”, i.e. not considered base characters.
Space
Whitespace are “ignorable”, i.e. not considered base characters
Implementations
sourceimpl CollationMaxVariable
impl CollationMaxVariable
sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Returns this CollationMaxVariable
as a &'static str
.
Trait Implementations
sourceimpl Clone for CollationMaxVariable
impl Clone for CollationMaxVariable
sourcefn clone(&self) -> CollationMaxVariable
fn clone(&self) -> CollationMaxVariable
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 more
sourceimpl Debug for CollationMaxVariable
impl Debug for CollationMaxVariable
sourceimpl<'de> Deserialize<'de> for CollationMaxVariable
impl<'de> Deserialize<'de> for CollationMaxVariable
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for CollationMaxVariable
impl Display for CollationMaxVariable
sourceimpl FromStr for CollationMaxVariable
impl FromStr for CollationMaxVariable
sourceimpl Serialize for CollationMaxVariable
impl Serialize for CollationMaxVariable
impl Copy for CollationMaxVariable
Auto Trait Implementations
impl RefUnwindSafe for CollationMaxVariable
impl Send for CollationMaxVariable
impl Sync for CollationMaxVariable
impl Unpin for CollationMaxVariable
impl UnwindSafe for CollationMaxVariable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more