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

name

the enum name (Name if not specified)

derive

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

define

parse C #define input instead of enum

default

implement the Default trait with the first value

display

implement the std::fmt::Display trait

fromprimative

implement the num::traits::FromPrimitive trait

fromstr

implement the std::str::FromStr trait

hex

hexadecimal output

pretty_fmt

implement pretty_fmt()

Trait Implementations

impl Default for FileArgs

fn default() -> FileArgs

Derived Implementations

impl Debug for FileArgs

fn fmt(&self, __arg_0: &mut Formatter) -> Result