pub struct ModuleFilesData<'db>(/* private fields */);Implementations§
Source§impl ModuleFilesData<'static>
impl ModuleFilesData<'static>
pub fn ingredient(db: &dyn Database) -> &IngredientImpl<Self>
Source§impl<'db> ModuleFilesData<'db>
impl<'db> ModuleFilesData<'db>
pub fn new<Db_>( db: &'db Db_, files: Vec<FileId<'db>>, generated_file_aux_data: OrderedHashMap<FileId<'db>, Option<DynGeneratedFileAuxData>>, plugin_diagnostics: Vec<(ModuleId<'db>, PluginDiagnostic<'db>)>, diagnostics_notes: PluginFileDiagnosticNotes<'db>, ) -> Self
Source§impl<'_db> ModuleFilesData<'_db>
impl<'_db> ModuleFilesData<'_db>
Sourcepub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Resultwhere
for<'db> Vec<FileId<'db>>: Debug,
for<'db> OrderedHashMap<FileId<'db>, Option<DynGeneratedFileAuxData>>: Debug,
for<'db> Vec<(ModuleId<'db>, PluginDiagnostic<'db>)>: Debug,
for<'db> PluginFileDiagnosticNotes<'db>: Debug,
pub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Resultwhere
for<'db> Vec<FileId<'db>>: Debug,
for<'db> OrderedHashMap<FileId<'db>, Option<DynGeneratedFileAuxData>>: Debug,
for<'db> Vec<(ModuleId<'db>, PluginDiagnostic<'db>)>: Debug,
for<'db> PluginFileDiagnosticNotes<'db>: Debug,
Default debug formatting for this struct (may be useful if you define your own Debug impl)
Trait Implementations§
Source§impl<'db> Clone for ModuleFilesData<'db>
impl<'db> Clone for ModuleFilesData<'db>
Source§fn clone(&self) -> ModuleFilesData<'db>
fn clone(&self) -> ModuleFilesData<'db>
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 Configuration for ModuleFilesData<'static>
impl Configuration for ModuleFilesData<'static>
const LOCATION: Location
Source§const DEBUG_NAME: &'static str = "ModuleFilesData"
const DEBUG_NAME: &'static str = "ModuleFilesData"
The debug name of the tracked struct.
Source§const TRACKED_FIELD_NAMES: &'static [&'static str]
const TRACKED_FIELD_NAMES: &'static [&'static str]
The debug names of any tracked fields.
Source§const TRACKED_FIELD_INDICES: &'static [usize]
const TRACKED_FIELD_INDICES: &'static [usize]
The relative indices of any tracked fields.
Source§type Fields<'db> = (Vec<FileId<'db>>, OrderedHashMap<FileId<'db>, Option<DynGeneratedFileAuxData>>, Vec<(ModuleId<'db>, PluginDiagnostic<'db>)>, OrderedHashMap<FileId<'db>, DiagnosticNote<'db>>)
type Fields<'db> = (Vec<FileId<'db>>, OrderedHashMap<FileId<'db>, Option<DynGeneratedFileAuxData>>, Vec<(ModuleId<'db>, PluginDiagnostic<'db>)>, OrderedHashMap<FileId<'db>, DiagnosticNote<'db>>)
A (possibly empty) tuple of the fields for this struct.
type Revisions = [Revision; 0]
type Struct<'db> = ModuleFilesData<'db>
fn untracked_fields(fields: &Self::Fields<'_>) -> impl Hash
Source§fn new_revisions(current_revision: Revision_) -> Self::Revisions
fn new_revisions(current_revision: Revision_) -> Self::Revisions
Create a new value revision array where each element is set to
current_revision.Source§unsafe fn update_fields<'db>(
current_revision: Revision_,
revisions: &mut Self::Revisions,
old_fields: *mut Self::Fields<'db>,
new_fields: Self::Fields<'db>,
) -> bool
unsafe fn update_fields<'db>( current_revision: Revision_, revisions: &mut Self::Revisions, old_fields: *mut Self::Fields<'db>, new_fields: Self::Fields<'db>, ) -> bool
Update the field data and, if the value has changed,
the appropriate entry in the
revisions array (tracked fields only). Read moreSource§fn serialize<S: Serializer>(
fields: &Self::Fields<'_>,
serializer: S,
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>( fields: &Self::Fields<'_>, serializer: S, ) -> Result<S::Ok, S::Error>
Serialize the fields using
serde. Read moreSource§fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
) -> Result<Self::Fields<'static>, D::Error>
fn deserialize<'de, D: Deserializer<'de>>( deserializer: D, ) -> Result<Self::Fields<'static>, D::Error>
Deserialize the fields using
serde. Read moreSource§impl<'db> HasJar for ModuleFilesData<'db>
impl<'db> HasJar for ModuleFilesData<'db>
Source§impl<'db> Hash for ModuleFilesData<'db>
impl<'db> Hash for ModuleFilesData<'db>
Source§impl<'db> PartialEq for ModuleFilesData<'db>
impl<'db> PartialEq for ModuleFilesData<'db>
Source§impl SalsaStructInDb for ModuleFilesData<'_>
impl SalsaStructInDb for ModuleFilesData<'_>
type MemoIngredientMap = MemoIngredientSingletonIndex
Source§fn lookup_ingredient_index(aux: &Zalsa) -> IngredientIndices
fn lookup_ingredient_index(aux: &Zalsa) -> IngredientIndices
Lookup or create ingredient indices. Read more
Source§fn entries(zalsa: &Zalsa) -> impl Iterator<Item = DatabaseKeyIndex> + '_
fn entries(zalsa: &Zalsa) -> impl Iterator<Item = DatabaseKeyIndex> + '_
Returns the IDs of any instances of this struct in the database.
Source§impl TrackedStructInDb for ModuleFilesData<'_>
impl TrackedStructInDb for ModuleFilesData<'_>
Source§fn database_key_index(zalsa: &Zalsa, id: Id) -> DatabaseKeyIndex
fn database_key_index(zalsa: &Zalsa, id: Id) -> DatabaseKeyIndex
Converts the identifier for this tracked struct into a
DatabaseKeyIndex.Source§impl Update for ModuleFilesData<'_>
impl Update for ModuleFilesData<'_>
impl<'db> Copy for ModuleFilesData<'db>
impl<'db> Eq for ModuleFilesData<'db>
impl Send for ModuleFilesData<'_>
impl<'db> StructuralPartialEq for ModuleFilesData<'db>
impl Sync for ModuleFilesData<'_>
Auto Trait Implementations§
impl<'db> Freeze for ModuleFilesData<'db>
impl<'db> RefUnwindSafe for ModuleFilesData<'db>
impl<'db> Unpin for ModuleFilesData<'db>
impl<'db> UnwindSafe for ModuleFilesData<'db>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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