pub enum TextCase {
Empty,
Lower,
Upper,
Snake,
Kebab,
Pascal,
Camel,
Title,
Constant,
Mixed,
}Expand description
Describes a detected or requested text case.
Variants§
Empty
Empty or whitespace-only input.
Lower
Lowercase text without separators.
Upper
Uppercase text without separators.
Snake
Lowercase text separated by underscores.
Kebab
Lowercase text separated by hyphens.
Pascal
Upper camel case such as RustUse.
Camel
Lower camel case such as rustUse.
Title
Title case separated by whitespace.
Constant
Uppercase text separated by underscores.
Mixed
Text that does not match a supported case shape.
Trait Implementations§
impl Copy for TextCase
impl Eq for TextCase
impl StructuralPartialEq for TextCase
Auto Trait Implementations§
impl Freeze for TextCase
impl RefUnwindSafe for TextCase
impl Send for TextCase
impl Sync for TextCase
impl Unpin for TextCase
impl UnsafeUnpin for TextCase
impl UnwindSafe for TextCase
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