[−][src]Enum ident_case::RenameRule
A casing rule for renaming Rust identifiers.
Variants
None
No-op rename rule.
LowerCase
Rename direct children to "lowercase" style.
PascalCase
Rename direct children to "PascalCase" style, as typically used for enum variants.
CamelCase
Rename direct children to "camelCase" style.
SnakeCase
Rename direct children to "snake_case" style, as commonly used for fields.
ScreamingSnakeCase
Rename direct children to "SCREAMING_SNAKE_CASE" style, as commonly used for constants.
KebabCase
Rename direct children to "kebab-case" style.
Methods
impl RenameRule
[src]
pub fn apply_to_variant<S: AsRef<str>>(&self, variant: S) -> String
[src]
Change case of a PascalCase
variant.
pub fn apply_to_field<S: AsRef<str>>(&self, field: S) -> String
[src]
Change case of a snake_case
field.
Trait Implementations
impl Copy for RenameRule
[src]
impl PartialEq<RenameRule> for RenameRule
[src]
fn eq(&self, other: &RenameRule) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Default for RenameRule
[src]
impl Clone for RenameRule
[src]
fn clone(&self) -> RenameRule
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for RenameRule
[src]
impl Debug for RenameRule
[src]
impl FromStr for RenameRule
[src]
Auto Trait Implementations
impl Send for RenameRule
impl Sync for RenameRule
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,