pub enum CaseMode {
Preserve,
Lower,
Upper,
Title,
Capitalize,
}Expand description
How to handle character case in the slugified output.
Variants§
Preserve
Keep the original case of each character.
Lower
Lowercase the entire string.
Upper
Uppercase the entire string.
Title
Title-case: first char of each word uppercase, rest lowercase. Word
boundaries are non-alphanumeric chars and start of string. This
matches the effective output of the Python slugify_camel_iso
pipeline (.capitalize() followed by _[a-z] → _X).
Capitalize
Synonym for CaseMode::Title kept for clarity in CLI flag values
(--case=capitalize).
Trait Implementations§
impl Copy for CaseMode
impl Eq for CaseMode
impl StructuralPartialEq for CaseMode
Auto Trait Implementations§
impl Freeze for CaseMode
impl RefUnwindSafe for CaseMode
impl Send for CaseMode
impl Sync for CaseMode
impl Unpin for CaseMode
impl UnsafeUnpin for CaseMode
impl UnwindSafe for CaseMode
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