pub struct ArgSources<'a> {
pub cwd: Option<&'a Path>,
pub settings: &'a [String],
pub buffers: &'a [String],
pub registers: &'a [String],
pub marks: &'a [String],
}Expand description
Sources for arg completion. Caller fills the slots applicable to their context. None means “no candidates” — completer returns empty.
Fields§
§cwd: Option<&'a Path>cwd to scan for :e <Tab> style path completion. None disables.
settings: &'a [String]All known option names + aliases for :set <Tab>. Empty disables.
buffers: &'a [String]Open buffer names for :b <Tab>. Empty disables.
registers: &'a [String]Non-empty register selectors (e.g. "a", "+", "0") for :reg/:put.
marks: &'a [String]Live mark names for :marks/:delmarks. Empty disables.
Trait Implementations§
Source§impl<'a> Default for ArgSources<'a>
impl<'a> Default for ArgSources<'a>
Source§fn default() -> ArgSources<'a>
fn default() -> ArgSources<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ArgSources<'a>
impl<'a> RefUnwindSafe for ArgSources<'a>
impl<'a> Send for ArgSources<'a>
impl<'a> Sync for ArgSources<'a>
impl<'a> Unpin for ArgSources<'a>
impl<'a> UnsafeUnpin for ArgSources<'a>
impl<'a> UnwindSafe for ArgSources<'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