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 context dependent prefix

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]

[src]

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

[src]

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

Trait Implementations

impl Debug for RenameRule
[src]

[src]

Formats the value using the given formatter.

impl Clone for RenameRule
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RenameRule
[src]

impl Default for RenameRule
[src]

[src]

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

impl FromStr for RenameRule
[src]

The associated error which can be returned from parsing.

[src]

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

impl<'de> Deserialize<'de> for RenameRule
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more