pub(super) struct CodegenCache {
path: PathBuf,
generator: Option<Checksum>,
manifest_schema_version: u32,
inputs: Checksum,
output_dir: PathBuf,
previous: Option<CacheState>,
}Fields§
§path: PathBuf§generator: Option<Checksum>§manifest_schema_version: u32§inputs: Checksum§output_dir: PathBuf§previous: Option<CacheState>Implementations§
Source§impl CodegenCache
impl CodegenCache
pub(super) fn open( workspace_root: &Path, manifests_dir: &Path, output_dir: &Path, inputs: &ManifestInputs, ) -> Self
pub(super) fn open_with_identity( workspace_root: &Path, manifests_dir: &Path, output_dir: &Path, inputs: &ManifestInputs, generator: Checksum, manifest_schema_version: u32, ) -> Self
pub(super) fn is_complete_hit(&self) -> Result<bool>
pub(super) fn reuse( &self, relative_path: &str, dependency: Checksum, ) -> Result<Option<String>>
pub(super) fn prepare_update( &self, generation: &GenerationResult, ) -> Result<Option<CacheUpdate>>
fn compatible_state(&self) -> Option<&CacheState>
Auto Trait Implementations§
impl Freeze for CodegenCache
impl RefUnwindSafe for CodegenCache
impl Send for CodegenCache
impl Sync for CodegenCache
impl Unpin for CodegenCache
impl UnsafeUnpin for CodegenCache
impl UnwindSafe for CodegenCache
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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