pub struct CollectCtx<'a> {
pub target: &'a str,
pub target_class: TargetClass,
pub symbol: &'a str,
pub refresh: bool,
pub trigger: CollectTrigger,
pub cwd: &'a Path,
}Expand description
Context passed to every collector invocation.
Fields§
§target: &'a str§target_class: TargetClass§symbol: &'a strThe symbol to collect for. May be a raw (pre-canonical) or canonical form; the collector canonicalizes internally.
refresh: boolIf true, overwrite any existing row matching
(symbol_id, source, tier) instead of returning the cached one.
trigger: CollectTrigger§cwd: &'a PathAuto Trait Implementations§
impl<'a> Freeze for CollectCtx<'a>
impl<'a> RefUnwindSafe for CollectCtx<'a>
impl<'a> Send for CollectCtx<'a>
impl<'a> Sync for CollectCtx<'a>
impl<'a> Unpin for CollectCtx<'a>
impl<'a> UnsafeUnpin for CollectCtx<'a>
impl<'a> UnwindSafe for CollectCtx<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more