pub struct RootDatabase { /* private fields */ }Trait Implementations§
Source§impl Database for RootDatabase
impl Database for RootDatabase
Source§fn salsa_event(&self, event_fn: Event)
fn salsa_event(&self, event_fn: Event)
This function is invoked at key points in the salsa
runtime. It permits the database to be customized and to
inject logging or other custom behavior.
Source§fn unwind_if_cancelled(&self)
fn unwind_if_cancelled(&self)
Starts unwinding the stack if the current revision is cancelled. Read more
Source§fn salsa_runtime(&self) -> &Runtime
fn salsa_runtime(&self) -> &Runtime
Gives access to the underlying salsa runtime. Read more
Source§fn salsa_runtime_mut(&mut self) -> &mut Runtime
fn salsa_runtime_mut(&mut self) -> &mut Runtime
Gives access to the underlying salsa runtime. Read more
Source§impl DatabaseOps for RootDatabase
impl DatabaseOps for RootDatabase
Source§fn ops_database(&self) -> &dyn Database
fn ops_database(&self) -> &dyn Database
Upcast this type to a
dyn Database.Source§fn ops_salsa_runtime(&self) -> &Runtime
fn ops_salsa_runtime(&self) -> &Runtime
Gives access to the underlying salsa runtime.
Source§fn ops_salsa_runtime_mut(&mut self) -> &mut Runtime
fn ops_salsa_runtime_mut(&mut self) -> &mut Runtime
Gives access to the underlying salsa runtime.
Source§fn fmt_index(&self, input: DatabaseKeyIndex, fmt: &mut Formatter<'_>) -> Result
fn fmt_index(&self, input: DatabaseKeyIndex, fmt: &mut Formatter<'_>) -> Result
Formats a database key index in a human readable fashion.
Source§fn maybe_changed_since(
&self,
input: DatabaseKeyIndex,
revision: Revision,
) -> bool
fn maybe_changed_since( &self, input: DatabaseKeyIndex, revision: Revision, ) -> bool
True if the computed value for
input may have changed since revision.Source§fn for_each_query(&self, op: &mut dyn FnMut(&dyn QueryStorageMassOps))
fn for_each_query(&self, op: &mut dyn FnMut(&dyn QueryStorageMassOps))
Executes the callback for each kind of query.
Source§impl DatabaseStorageTypes for RootDatabase
impl DatabaseStorageTypes for RootDatabase
Source§type DatabaseStorage = __SalsaDatabaseStorage
type DatabaseStorage = __SalsaDatabaseStorage
Defines the “storage type”, where all the query data is kept.
This type is defined by the
database_storage macro.Source§impl Debug for RootDatabase
impl Debug for RootDatabase
Source§impl Default for RootDatabase
impl Default for RootDatabase
Source§fn default() -> RootDatabase
fn default() -> RootDatabase
Returns the “default value” for a type. Read more
Source§impl HasQueryGroup<RirDatabaseStorage> for RootDatabase
impl HasQueryGroup<RirDatabaseStorage> for RootDatabase
Source§fn group_storage(&self) -> &<RirDatabaseStorage as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<RirDatabaseStorage as QueryGroup>::GroupStorage
Access the group storage struct from the database.
Source§impl ParallelDatabase for RootDatabase
impl ParallelDatabase for RootDatabase
Auto Trait Implementations§
impl !Freeze for RootDatabase
impl !RefUnwindSafe for RootDatabase
impl Send for RootDatabase
impl !Sync for RootDatabase
impl Unpin for RootDatabase
impl UnsafeUnpin for RootDatabase
impl !UnwindSafe for RootDatabase
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<DB> RirDatabase for DBwhere
DB: Database + HasQueryGroup<RirDatabaseStorage>,
impl<DB> RirDatabase for DBwhere
DB: Database + HasQueryGroup<RirDatabaseStorage>,
fn nodes(&self) -> Arc<HashMap<DefId, Node, BuildHasherDefault<FxHasher>>>
Source§fn set_nodes(
&mut self,
value__: Arc<HashMap<DefId, Node, BuildHasherDefault<FxHasher>>>,
)
fn set_nodes( &mut self, value__: Arc<HashMap<DefId, Node, BuildHasherDefault<FxHasher>>>, )
Set the value of the
nodes input. Read moreSource§fn set_nodes_with_durability(
&mut self,
value__: Arc<HashMap<DefId, Node, BuildHasherDefault<FxHasher>>>,
durability__: Durability,
)
fn set_nodes_with_durability( &mut self, value__: Arc<HashMap<DefId, Node, BuildHasherDefault<FxHasher>>>, durability__: Durability, )
Set the value of the
nodes input and promise
that its value will never change again. Read morefn files(&self) -> Arc<HashMap<FileId, Arc<File>, BuildHasherDefault<FxHasher>>>
Source§fn set_files(
&mut self,
value__: Arc<HashMap<FileId, Arc<File>, BuildHasherDefault<FxHasher>>>,
)
fn set_files( &mut self, value__: Arc<HashMap<FileId, Arc<File>, BuildHasherDefault<FxHasher>>>, )
Set the value of the
files input. Read moreSource§fn set_files_with_durability(
&mut self,
value__: Arc<HashMap<FileId, Arc<File>, BuildHasherDefault<FxHasher>>>,
durability__: Durability,
)
fn set_files_with_durability( &mut self, value__: Arc<HashMap<FileId, Arc<File>, BuildHasherDefault<FxHasher>>>, durability__: Durability, )
Set the value of the
files input and promise
that its value will never change again. Read morefn file_ids_map( &self, ) -> Arc<HashMap<Arc<PathBuf>, FileId, BuildHasherDefault<FxHasher>>>
Source§fn set_file_ids_map(
&mut self,
value__: Arc<HashMap<Arc<PathBuf>, FileId, BuildHasherDefault<FxHasher>>>,
)
fn set_file_ids_map( &mut self, value__: Arc<HashMap<Arc<PathBuf>, FileId, BuildHasherDefault<FxHasher>>>, )
Set the value of the
file_ids_map input. Read moreSource§fn set_file_ids_map_with_durability(
&mut self,
value__: Arc<HashMap<Arc<PathBuf>, FileId, BuildHasherDefault<FxHasher>>>,
durability__: Durability,
)
fn set_file_ids_map_with_durability( &mut self, value__: Arc<HashMap<Arc<PathBuf>, FileId, BuildHasherDefault<FxHasher>>>, durability__: Durability, )
Set the value of the
file_ids_map input and promise
that its value will never change again. Read morefn type_graph(&self) -> Arc<TypeGraph>
Source§fn set_type_graph(&mut self, value__: Arc<TypeGraph>)
fn set_type_graph(&mut self, value__: Arc<TypeGraph>)
Set the value of the
type_graph input. Read moreSource§fn set_type_graph_with_durability(
&mut self,
value__: Arc<TypeGraph>,
durability__: Durability,
)
fn set_type_graph_with_durability( &mut self, value__: Arc<TypeGraph>, durability__: Durability, )
Set the value of the
type_graph input and promise
that its value will never change again. Read moreSet the value of the
tags_map input. Read moreSet the value of the
tags_map input and promise
that its value will never change again. Read morefn input_files(&self) -> Arc<Vec<FileId>>
Source§fn set_input_files(&mut self, value__: Arc<Vec<FileId>>)
fn set_input_files(&mut self, value__: Arc<Vec<FileId>>)
Set the value of the
input_files input. Read moreSource§fn set_input_files_with_durability(
&mut self,
value__: Arc<Vec<FileId>>,
durability__: Durability,
)
fn set_input_files_with_durability( &mut self, value__: Arc<Vec<FileId>>, durability__: Durability, )
Set the value of the
input_files input and promise
that its value will never change again. Read more