pub struct FilesGenerator;Expand description
gen:files. Resolves the prefix into a directory + basename
pattern, then lists entries of that directory matching the
basename prefix. Returns directories with a trailing / so the
user can keep tab-completing into nested paths.
Trait Implementations§
Source§impl CandidateGenerator for FilesGenerator
impl CandidateGenerator for FilesGenerator
fn generate(&self, ctx: &GenerateContext<'_>) -> Vec<RawCandidate>
Source§fn cache_key(&self, ctx: &GenerateContext<'_>) -> Option<CacheKey>
fn cache_key(&self, ctx: &GenerateContext<'_>) -> Option<CacheKey>
Optional cache key. When two contexts produce the same
Some(key), the pipeline serves the second from cache. The
query (prefix) is implicitly part of the key only if the
generator includes it – many generators key on a registry
version (cache covers all queries until the registry
changes) and let the matcher do the per-query filtering.Auto Trait Implementations§
impl Freeze for FilesGenerator
impl RefUnwindSafe for FilesGenerator
impl Send for FilesGenerator
impl Sync for FilesGenerator
impl Unpin for FilesGenerator
impl UnsafeUnpin for FilesGenerator
impl UnwindSafe for FilesGenerator
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