Struct rust_enum_derive::FileArgs [] [src]

pub struct FileArgs {
    pub name: Option<String>,
    pub derive: Option<String>,
    pub define: bool,
    pub default: bool,
    pub display: bool,
    pub fromprimative: bool,
    pub fromstr: bool,
    pub hex: bool,
    pub pretty_fmt: bool,
}

Arguments for how to process() an input file.

Fields

the enum name (Name if not specified)

Which traits to derive. Ex: "Debug, PartialEq"

parse C #define input instead of enum

implement the Default trait with the first value

implement the std::fmt::Display trait

implement the num::traits::FromPrimitive trait

implement the std::str::FromStr trait

hexadecimal output

implement pretty_fmt()

Trait Implementations

impl Debug for FileArgs
[src]

Formats the value using the given formatter.

impl Default for FileArgs
[src]

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