pub struct LinkStore<'a> {
pub cache: &'a Cache,
pub lint: Option<&'a str>,
pub root: &'a Path,
pub config: Option<(&'a Path, &'a HtlConfig)>,
}Expand description
The run cache as the linker uses it: the store, plus what the store needs to key and to validate an entry and that only the caller knows.
A borrowed view rather than part of LinkOptions, which is owned and Default and
crosses the proc-macro boundary as a value; the store lives for one command or one
macro expansion, the options may not.
Fields§
§cache: &'a CacheThe store itself: where a typed module’s generated Lua and its check are looked up before the checker is asked, and written back after.
lint: Option<&'a str>The lint selection in force, as cache::gen_key takes it: an entry generated
under different lints reports different lints, and must not be reused.
root: &'a PathThe project root, for the directories a require could resolve in.
config: Option<(&'a Path, &'a HtlConfig)>The project’s htl.toml (its path) and what it says: its [check] paths are
probed, and the file itself is an input of every entry, since its lint selection is.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LinkStore<'a>
impl<'a> !Send for LinkStore<'a>
impl<'a> !Sync for LinkStore<'a>
impl<'a> !UnwindSafe for LinkStore<'a>
impl<'a> Freeze for LinkStore<'a>
impl<'a> Unpin for LinkStore<'a>
impl<'a> UnsafeUnpin for LinkStore<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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