pub struct BashComplete;Expand description
Bash shell completion implementation.
Uses COMP_WORDS and COMP_CWORD environment variables set by bash’s
completion system.
Trait Implementations§
Source§impl Clone for BashComplete
impl Clone for BashComplete
Source§fn clone(&self) -> BashComplete
fn clone(&self) -> BashComplete
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BashComplete
impl Debug for BashComplete
Source§impl Default for BashComplete
impl Default for BashComplete
Source§fn default() -> BashComplete
fn default() -> BashComplete
Returns the “default value” for a type. Read more
Source§impl ShellComplete for BashComplete
impl ShellComplete for BashComplete
Source§fn source_template(&self) -> &str
fn source_template(&self) -> &str
Returns the shell script template for enabling completions. Read more
Source§fn get_completion_args(&self) -> CompletionArgs
fn get_completion_args(&self) -> CompletionArgs
Get completion arguments from the shell environment. Read more
Source§fn format_completion(&self, item: &CompletionItem) -> String
fn format_completion(&self, item: &CompletionItem) -> String
Format a completion item for output to the shell. Read more
Auto Trait Implementations§
impl Freeze for BashComplete
impl RefUnwindSafe for BashComplete
impl Send for BashComplete
impl Sync for BashComplete
impl Unpin for BashComplete
impl UnsafeUnpin for BashComplete
impl UnwindSafe for BashComplete
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