pub struct DirectoriesGenerator;Expand description
gen:directories. Resolves the prefix into a directory + basename
pattern, then lists only directories of that directory matching
the basename prefix. Like FilesGenerator but omits regular files.
Trait Implementations§
Source§impl CandidateGenerator for DirectoriesGenerator
impl CandidateGenerator for DirectoriesGenerator
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 DirectoriesGenerator
impl RefUnwindSafe for DirectoriesGenerator
impl Send for DirectoriesGenerator
impl Sync for DirectoriesGenerator
impl Unpin for DirectoriesGenerator
impl UnsafeUnpin for DirectoriesGenerator
impl UnwindSafe for DirectoriesGenerator
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