Enum cbindgen::RenameRule [] [src]

pub enum RenameRule {
    None,
    GeckoCase,
    LowerCase,
    UpperCase,
    PascalCase,
    CamelCase,
    SnakeCase,
    ScreamingSnakeCase,
    QualifiedScreamingSnakeCase,
}

A rule to apply to an identifier when generating bindings.

Variants

Do not apply any renaming. The default.

Converts the identifier to PascalCase and adds a prefix based on where the identifier is used.

Converts the identifier to lower case.

Converts the identifier to upper case.

Converts the identifier to PascalCase.

Converts the identifier to camelCase.

Converts the identifier to snake_case.

Converts the identifier to SCREAMING_SNAKE_CASE.

Converts the identifier to SCREAMING_SNAKE_CASE and prefixes enum variants with the enum name.

Methods

impl RenameRule
[src]

Applies the rename rule to a string that is formatted in PascalCase.

Applies the rename rule to a string that is formatted in snake_case.

Trait Implementations

impl Debug for RenameRule
[src]

Formats the value using the given formatter.

impl Clone for RenameRule
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for RenameRule
[src]

impl Default for RenameRule
[src]

Returns the "default value" for a type. Read more

impl FromStr for RenameRule
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Deserialize for RenameRule
[src]

Deserialize this value from the given Serde deserializer. Read more