pub struct Bash;
Expand description
Generate bash completion file
Trait Implementations§
Source§impl Generator for Bash
impl Generator for Bash
Source§fn file_name(&self, name: &str) -> String
fn file_name(&self, name: &str) -> String
Returns the file name that is created when this generator is called during compile time. Read more
Source§fn generate(&self, cmd: &Command, buf: &mut dyn Write)
fn generate(&self, cmd: &Command, buf: &mut dyn Write)
Generates output out of
clap::Command
. Read moreSource§fn try_generate(&self, cmd: &Command, buf: &mut dyn Write) -> Result<(), Error>
fn try_generate(&self, cmd: &Command, buf: &mut dyn Write) -> Result<(), Error>
Fallible version to generate output out of
clap::Command
. Read moreimpl Copy for Bash
impl Eq for Bash
impl StructuralPartialEq for Bash
Auto Trait Implementations§
impl Freeze for Bash
impl RefUnwindSafe for Bash
impl Send for Bash
impl Sync for Bash
impl Unpin for Bash
impl UnwindSafe for Bash
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