Enum resymgen::NamingConvention
source · pub enum NamingConvention {
Identifier,
SnakeCase,
ScreamingSnakeCase,
CamelCase,
PascalCase,
CamelSnakeCase,
UnderscoreSeparatedCamelCase,
PascalSnakeCase,
FlatCase,
UpperFlatCase,
}
Expand description
Naming conventions for symbol names.
Variants§
Identifier
Symbol names should be valid identifiers (in accordance with Rust syntax). This condition implicitly applies to all other variants.
SnakeCase
snake_case
ScreamingSnakeCase
SCREAMING_SNAKE_CASE
CamelCase
camelCase
PascalCase
PascalCase
CamelSnakeCase
camel_Snake_Case (camelCase_Then_PascalCase)
UnderscoreSeparatedCamelCase
underscoreSeparated_camelCase
PascalSnakeCase
Pascal_Snake_Case (UnderscoreSeparated_PascalCase)
FlatCase
flatcase
UpperFlatCase
UPPERFLATCASE
Trait Implementations§
source§impl Clone for NamingConvention
impl Clone for NamingConvention
source§fn clone(&self) -> NamingConvention
fn clone(&self) -> NamingConvention
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NamingConvention
impl Debug for NamingConvention
source§impl Ord for NamingConvention
impl Ord for NamingConvention
source§fn cmp(&self, other: &NamingConvention) -> Ordering
fn cmp(&self, other: &NamingConvention) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NamingConvention
impl PartialEq for NamingConvention
source§fn eq(&self, other: &NamingConvention) -> bool
fn eq(&self, other: &NamingConvention) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NamingConvention
impl PartialOrd for NamingConvention
source§fn partial_cmp(&self, other: &NamingConvention) -> Option<Ordering>
fn partial_cmp(&self, other: &NamingConvention) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for NamingConvention
impl Eq for NamingConvention
impl StructuralEq for NamingConvention
impl StructuralPartialEq for NamingConvention
Auto Trait Implementations§
impl RefUnwindSafe for NamingConvention
impl Send for NamingConvention
impl Sync for NamingConvention
impl Unpin for NamingConvention
impl UnwindSafe for NamingConvention
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<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.