pub enum FeatureConfig<'a> {
Always,
Gated(&'a str),
Never,
}Expand description
Configuration for including features in the code generator.
e.g. Debug impls for generated types.
Variants§
Always
Generate code for this feature.
Gated(&'a str)
Generate code behind #[cfg(feature = ...)]
Never
Don’t generate code for this feature.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FeatureConfig<'a>
impl<'a> RefUnwindSafe for FeatureConfig<'a>
impl<'a> Send for FeatureConfig<'a>
impl<'a> Sync for FeatureConfig<'a>
impl<'a> Unpin for FeatureConfig<'a>
impl<'a> UnsafeUnpin for FeatureConfig<'a>
impl<'a> UnwindSafe for FeatureConfig<'a>
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