pub enum GenMode<'a> {
Generate(&'a str),
FromBuildOut(&'a str),
Copy(&'a str),
None,
}Expand description
The resolved generation mode for a completions/manpages block.
Returned by CompletionsConfig::mode / ManpagesConfig::mode after
the exactly-one-set invariant has been enforced at deserialize time, so
the stage never has to re-validate mutual exclusivity.
Variants§
Generate(&'a str)
Run the host binary (mode A): the generate: command template.
FromBuildOut(&'a str)
Harvest a build.rs OUT_DIR via a per-target glob (mode B).
Copy(&'a str)
Copy committed files from a path/glob (mode C).
None
No mode set — the block is a no-op.
Trait Implementations§
impl<'a> StructuralPartialEq for GenMode<'a>
Auto Trait Implementations§
impl<'a> Freeze for GenMode<'a>
impl<'a> RefUnwindSafe for GenMode<'a>
impl<'a> Send for GenMode<'a>
impl<'a> Sync for GenMode<'a>
impl<'a> Unpin for GenMode<'a>
impl<'a> UnsafeUnpin for GenMode<'a>
impl<'a> UnwindSafe for GenMode<'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