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,
}
Expand description
Arguments for how to process() an input file.
Fields§
§name: Option<String>
the enum name (Name if not specified)
derive: Option<String>
Which traits to derive. Ex: “Debug, PartialEq”
define: bool
parse C #define input instead of enum
default: bool
implement the Default trait with the first value
display: bool
implement the std::fmt::Display trait
fromprimative: bool
implement the num::traits::FromPrimitive trait
fromstr: bool
implement the std::str::FromStr trait
hex: bool
hexadecimal output
pretty_fmt: bool
implement pretty_fmt()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileArgs
impl RefUnwindSafe for FileArgs
impl Send for FileArgs
impl Sync for FileArgs
impl Unpin for FileArgs
impl UnwindSafe for FileArgs
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