pub enum CaseType {
CamelCase,
KebabCase,
PascalCase,
SnakeCase,
}
Variants§
Implementations§
Source§impl CaseType
impl CaseType
Sourcepub const fn is_camel_case(&self) -> bool
pub const fn is_camel_case(&self) -> bool
Returns true if the enum is CaseType::CamelCase otherwise false
Sourcepub const fn is_kebab_case(&self) -> bool
pub const fn is_kebab_case(&self) -> bool
Returns true if the enum is CaseType::KebabCase otherwise false
Sourcepub const fn is_pascal_case(&self) -> bool
pub const fn is_pascal_case(&self) -> bool
Returns true if the enum is CaseType::PascalCase otherwise false
Sourcepub const fn is_snake_case(&self) -> bool
pub const fn is_snake_case(&self) -> bool
Returns true if the enum is CaseType::SnakeCase otherwise false
Trait Implementations§
Source§impl IntoEnumIterator for CaseType
impl IntoEnumIterator for CaseType
type Iterator = CaseTypeIter
fn iter() -> CaseTypeIter ⓘ
Source§impl Ord for CaseType
impl Ord for CaseType
Source§impl PartialOrd for CaseType
impl PartialOrd for CaseType
Source§impl VariantNames for CaseType
impl VariantNames for CaseType
impl Copy for CaseType
impl Eq for CaseType
impl StructuralPartialEq for CaseType
Auto Trait Implementations§
impl Freeze for CaseType
impl RefUnwindSafe for CaseType
impl Send for CaseType
impl Sync for CaseType
impl Unpin for CaseType
impl UnwindSafe for CaseType
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