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 for CaseTransform
impl PartialEq for CaseTransform
source§impl PartialOrd for CaseTransform
impl PartialOrd for CaseTransform
impl Copy for CaseTransform
impl Eq for CaseTransform
impl StructuralPartialEq for CaseTransform
Auto Trait Implementations§
impl Freeze for CaseTransform
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)