Enum caseconv::dynamic::CaseType
[−]
[src]
#[repr(C)]pub enum CaseType { CAMEL, SNAKE, KEBAB, }
Runtime data type representing a case
Variants
CAMEL
SNAKE
KEBAB
Methods
impl CaseType
[src]
fn guess(s: &str) -> CaseType
Attempts to guess the case of a given string by counting the # of components parsed for each case, and returning the one that finds the most.
Trait Implementations
impl Clone for CaseType
[src]
fn clone(&self) -> CaseType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for CaseType
[src]
impl<'a, 'b> DefiningCase<'a, CaseTypeIterator<'a>> for &'b CaseType
[src]
fn components_iter(self, src: &'a str) -> CaseTypeIterator<'a>
impl<'b> Case for &'b CaseType
[src]
fn build_identifier<'a, It: Iterator<Item = &'a str>>(
self,
components: It
) -> String
self,
components: It
) -> String