Enum esp_idf_svc::sys::const_format::Case
source · pub enum Case {
Lower,
Upper,
Pascal,
Camel,
Snake,
UpperSnake,
Kebab,
UpperKebab,
}
Expand description
The casing style of a string.
You can pass this to map_ascii_case
to determine the casing style of the
returned &'static str
.
Variants§
Lower
Lowercase
Upper
Uppercase
Pascal
Pascal case, eg: FooBarBaz
. The first character is always uppercase.
Camel
Camel case, eg: fooBarBaz
. The first character is always lowercase.
Snake
Snake case, eg: foo_bar_baz
. Also turns the string lowercase.
UpperSnake
Snake case, eg: FOO_BAR_BAZ
. Also turns the string uppercase.
Kebab
Kebab case, eg: foo-bar-baz
. Also turns the string lowercase.
UpperKebab
Kebab case, eg: FOO-BAR-BAZ
. Also turns the string uppercase.
Trait Implementations§
impl Copy for Case
impl StructuralPartialEq for Case
Auto Trait Implementations§
impl Freeze for Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnwindSafe for Case
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§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
)