[−][src]Struct zamm::CodegenConfig
Runtime options for code generation. Copied from Yang.
Fields
comment_autogen: bool
Whether or not to mark each generated line of code with the autogeneration comment
specified by zamm_yang::codegen::mark_autogen::AUTOGENERATION_MARKER
.
add_rustfmt_attributes: bool
Whether or not to add rustfmt attributes to prevent rustfmt from acting on certain lines.
track_autogen: bool
Whether or not we want Cargo to track autogenerated files and rebuild when they change.
yin: bool
Whether or not we're outputting code for Yin itself.
release: bool
Whether or not we're outputting code for release.
If we are, the implications are:
- No autogeneration comments, so that documentation looks good on docs.rs
- No
build.rs
, because there's no network access for builds on docs.rs anyways - Autogenerated files will be committed instead of ignored, because they can't be built
without
build.rs
to do it - A release branch will be created, ready for cargo publishing
Trait Implementations
impl Clone for CodegenConfig
[src]
pub fn clone(&self) -> CodegenConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CodegenConfig
[src]
impl Default for CodegenConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for CodegenConfig
impl Send for CodegenConfig
impl Sync for CodegenConfig
impl Unpin for CodegenConfig
impl UnwindSafe for CodegenConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,