pub enum ValidatorCaseOption {
Any,
Upper,
Lower,
}
Expand description
A special kind of options for validators related to the case of characters.
Variants§
Implementations§
source§impl ValidatorCaseOption
impl ValidatorCaseOption
pub unsafe fn from_ordinal_unsafe(number: i8) -> ValidatorCaseOption
pub fn from_ordinal(number: i8) -> Option<ValidatorCaseOption>
pub fn ordinal(&self) -> i8
pub const fn variants() -> [ValidatorCaseOption; 3]
pub const fn variant_count() -> usize
Trait Implementations§
source§impl Clone for ValidatorCaseOption
impl Clone for ValidatorCaseOption
source§fn clone(&self) -> ValidatorCaseOption
fn clone(&self) -> ValidatorCaseOption
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 Debug for ValidatorCaseOption
impl Debug for ValidatorCaseOption
source§impl Default for ValidatorCaseOption
impl Default for ValidatorCaseOption
source§impl PartialEq<ValidatorCaseOption> for ValidatorCaseOption
impl PartialEq<ValidatorCaseOption> for ValidatorCaseOption
source§fn eq(&self, other: &ValidatorCaseOption) -> bool
fn eq(&self, other: &ValidatorCaseOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ValidatorCaseOption
impl Eq for ValidatorCaseOption
impl StructuralEq for ValidatorCaseOption
impl StructuralPartialEq for ValidatorCaseOption
Auto Trait Implementations§
impl RefUnwindSafe for ValidatorCaseOption
impl Send for ValidatorCaseOption
impl Sync for ValidatorCaseOption
impl Unpin for ValidatorCaseOption
impl UnwindSafe for ValidatorCaseOption
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more