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: boolparse C #define input instead of enum
default: boolimplement the Default trait with the first value
display: boolimplement the std::fmt::Display trait
fromprimative: boolimplement the num::traits::FromPrimitive trait
fromstr: boolimplement the std::str::FromStr trait
hex: boolhexadecimal output
pretty_fmt: boolimplement 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