pub struct Fish;
Expand description
Generate fish completion file
Note: The fish generator currently only supports named options (-o/–option), not positional arguments.
Trait Implementations§
Source§impl Generator for Fish
impl Generator for Fish
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 Fish
impl Eq for Fish
impl StructuralPartialEq for Fish
Auto Trait Implementations§
impl Freeze for Fish
impl RefUnwindSafe for Fish
impl Send for Fish
impl Sync for Fish
impl Unpin for Fish
impl UnwindSafe for Fish
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