Enum option_set::CaseTransform
source · pub enum CaseTransform {
Identity,
LowerSnake,
UpperSnake,
LowerCamel,
UpperCamel,
Kebab,
Title,
}
Expand description
Type that knows how to transform the case of individual option flag names.
Variants§
Identity
Do not transform the name.
LowerSnake
lower_snake_case
UpperSnake
UPPER_SNAKE_CASE
LowerCamel
lowerCamelCase
UpperCamel
UpperCamelCase
Kebab
kebab-case
Title
Title Case
Trait Implementations§
source§impl Clone for CaseTransform
impl Clone for CaseTransform
source§fn clone(&self) -> CaseTransform
fn clone(&self) -> CaseTransform
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 CaseTransform
impl Debug for CaseTransform
source§impl Default for CaseTransform
impl Default for CaseTransform
source§fn default() -> CaseTransform
fn default() -> CaseTransform
Returns the “default value” for a type. Read more
source§impl Hash for CaseTransform
impl Hash for CaseTransform
source§impl Ord for CaseTransform
impl Ord for CaseTransform
source§fn cmp(&self, other: &CaseTransform) -> Ordering
fn cmp(&self, other: &CaseTransform) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CaseTransform> for CaseTransform
impl PartialEq<CaseTransform> for CaseTransform
source§fn eq(&self, other: &CaseTransform) -> bool
fn eq(&self, other: &CaseTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CaseTransform> for CaseTransform
impl PartialOrd<CaseTransform> for CaseTransform
source§fn partial_cmp(&self, other: &CaseTransform) -> Option<Ordering>
fn partial_cmp(&self, other: &CaseTransform) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CaseTransform
impl Eq for CaseTransform
impl StructuralEq for CaseTransform
impl StructuralPartialEq for CaseTransform
Auto Trait Implementations§
impl RefUnwindSafe for CaseTransform
impl Send for CaseTransform
impl Sync for CaseTransform
impl Unpin for CaseTransform
impl UnwindSafe for CaseTransform
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