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<'de> Deserialize<'de> for CaseType
impl<'de> Deserialize<'de> for CaseType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CaseType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CaseType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 Serialize for CaseType
impl Serialize for CaseType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Displayable for T
impl<T> Displayable for T
fn __private__(&self) -> Seal
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.