pub struct GeneratorOptions {
pub checker: bool,
pub interpreter: bool,
pub parser: bool,
pub docs: bool,
pub tests: bool,
}Expand description
Options for code generation.
Fields§
§checker: boolGenerate a type checker
interpreter: boolGenerate an interpreter
parser: boolGenerate a parser
docs: boolGenerate documentation
tests: boolGenerate tests
Implementations§
Source§impl GeneratorOptions
impl GeneratorOptions
Sourcepub fn checker_only() -> Self
pub fn checker_only() -> Self
Create options for generating only the checker.
Trait Implementations§
Source§impl Clone for GeneratorOptions
impl Clone for GeneratorOptions
Source§fn clone(&self) -> GeneratorOptions
fn clone(&self) -> GeneratorOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorOptions
impl Debug for GeneratorOptions
Source§impl Default for GeneratorOptions
impl Default for GeneratorOptions
Source§fn default() -> GeneratorOptions
fn default() -> GeneratorOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GeneratorOptions
impl RefUnwindSafe for GeneratorOptions
impl Send for GeneratorOptions
impl Sync for GeneratorOptions
impl Unpin for GeneratorOptions
impl UnwindSafe for GeneratorOptions
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