pub struct FilesDatabaseForTesting { /* private fields */ }Trait Implementations§
Source§impl Clone for FilesDatabaseForTesting
impl Clone for FilesDatabaseForTesting
Source§fn clone(&self) -> FilesDatabaseForTesting
fn clone(&self) -> FilesDatabaseForTesting
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Database for FilesDatabaseForTesting
impl Database for FilesDatabaseForTesting
Source§fn trigger_lru_eviction(&mut self)
fn trigger_lru_eviction(&mut self)
Enforces current LRU limits, evicting entries if necessary. Read more
Source§fn synthetic_write(&mut self, durability: Durability)
fn synthetic_write(&mut self, durability: Durability)
A “synthetic write” causes the system to act as though some
input of durability
durability has changed, triggering a new revision.
This is mostly useful for profiling scenarios. Read moreSource§fn trigger_cancellation(&mut self)
fn trigger_cancellation(&mut self)
This method triggers cancellation.
If you invoke it while a snapshot exists, it
will block until that snapshot is dropped – if that snapshot
is owned by the current thread, this could trigger deadlock.
Source§fn report_untracked_read(&self)
fn report_untracked_read(&self)
Reports that the query depends on some state unknown to salsa. Read more
Source§fn ingredient_debug_name(
&self,
ingredient_index: IngredientIndex,
) -> Cow<'_, str>
fn ingredient_debug_name( &self, ingredient_index: IngredientIndex, ) -> Cow<'_, str>
Return the “debug name” (i.e., the struct name, etc) for an “ingredient”,
which are the fine-grained components we use to track data. This is intended
for debugging and the contents of the returned string are not semver-guaranteed. Read more
Source§fn unwind_if_revision_cancelled(&self)
fn unwind_if_revision_cancelled(&self)
Starts unwinding the stack if the current revision is cancelled. Read more
Source§impl Default for FilesDatabaseForTesting
impl Default for FilesDatabaseForTesting
Auto Trait Implementations§
impl !Freeze for FilesDatabaseForTesting
impl RefUnwindSafe for FilesDatabaseForTesting
impl Send for FilesDatabaseForTesting
impl !Sync for FilesDatabaseForTesting
impl Unpin for FilesDatabaseForTesting
impl !UnwindSafe for FilesDatabaseForTesting
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
Source§impl<T> FilesGroup for T
impl<T> FilesGroup for T
Source§fn crate_configs<'db>(
&'db self,
) -> &'db OrderedHashMap<CrateId<'db>, CrateConfiguration<'db>>
fn crate_configs<'db>( &'db self, ) -> &'db OrderedHashMap<CrateId<'db>, CrateConfiguration<'db>>
Interned version of
crate_configs_input.Source§fn file_overrides<'db>(&'db self) -> &'db OrderedHashMap<FileId<'db>, ArcStr>
fn file_overrides<'db>(&'db self) -> &'db OrderedHashMap<FileId<'db>, ArcStr>
Interned version of
file_overrides_input.Source§fn flags<'db>(&'db self) -> &'db OrderedHashMap<FlagId<'db>, Arc<Flag>>
fn flags<'db>(&'db self) -> &'db OrderedHashMap<FlagId<'db>, Arc<Flag>>
Interned version of
flags_input.Source§fn crate_config<'db>(
&'db self,
crate_id: CrateId<'db>,
) -> Option<&'db CrateConfiguration<'db>>
fn crate_config<'db>( &'db self, crate_id: CrateId<'db>, ) -> Option<&'db CrateConfiguration<'db>>
Configuration of the crate.
Source§fn file_content<'db>(&'db self, file_id: FileId<'db>) -> Option<&'db str>
fn file_content<'db>(&'db self, file_id: FileId<'db>) -> Option<&'db str>
Query for the file contents. This takes overrides into consideration.
fn file_summary<'db>( &'db self, file_id: FileId<'db>, ) -> Option<&'db FileSummary>
Source§fn blob_content<'db>(&'db self, blob_id: BlobId<'db>) -> Option<&'db [u8]>
fn blob_content<'db>(&'db self, blob_id: BlobId<'db>) -> Option<&'db [u8]>
Query for the blob content.
Source§fn get_flag<'db>(&'db self, id: FlagId<'db>) -> Option<&'db Flag>
fn get_flag<'db>(&'db self, id: FlagId<'db>) -> Option<&'db Flag>
Query to get a compilation flag by its ID.
Source§fn file_input<'db>(&'db self, file_id: FileId<'db>) -> &'db FileInput
fn file_input<'db>(&'db self, file_id: FileId<'db>) -> &'db FileInput
Create an input file from an interned file id.
Source§fn crate_input<'db>(&'db self, crt: CrateId<'db>) -> &'db CrateInput
fn crate_input<'db>(&'db self, crt: CrateId<'db>) -> &'db CrateInput
Create an input crate from an interned crate id.
Source§fn set_flag(&mut self, flag: FlagLongId, value: Option<Arc<Flag>>)
fn set_flag(&mut self, flag: FlagLongId, value: Option<Arc<Flag>>)
Sets the given flag value. None value removes the flag.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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