pub struct ModuleIndex<'db>(/* private fields */);
Implementations§
Source§impl ModuleIndex<'static>
impl ModuleIndex<'static>
pub fn ingredient(db: &dyn Database) -> &IngredientImpl<Self>
Source§impl<'db> ModuleIndex<'db>
impl<'db> ModuleIndex<'db>
Source§impl<'_db> ModuleIndex<'_db>
impl<'_db> ModuleIndex<'_db>
Sourcepub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Result
pub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Result
Default debug formatting for this struct (may be useful if you define your own Debug
impl)
Source§impl<'db> ModuleIndex<'db>
impl<'db> ModuleIndex<'db>
Sourcepub fn find_by_offset(
&self,
db: &'db dyn DwarfDb,
offset: usize,
) -> Option<&'db ModuleRange>
pub fn find_by_offset( &self, db: &'db dyn DwarfDb, offset: usize, ) -> Option<&'db ModuleRange>
Find the module at a specific offset
Trait Implementations§
Source§impl<'db> Clone for ModuleIndex<'db>
impl<'db> Clone for ModuleIndex<'db>
Source§fn clone(&self) -> ModuleIndex<'db>
fn clone(&self) -> ModuleIndex<'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 ModuleIndex<'static>
impl Configuration for ModuleIndex<'static>
const LOCATION: Location
Source§const DEBUG_NAME: &'static str = "ModuleIndex"
const DEBUG_NAME: &'static str = "ModuleIndex"
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<ModuleRange>, Module)
type Fields<'db> = (Vec<ModuleRange>, Module)
A (possibly empty) tuple of the fields for this struct.
Source§type Revisions = [Revision; 0]
type Revisions = [Revision; 0]
A array of
Revision
values, one per each of the tracked value fields.
When a struct is re-recreated in a new revision, the corresponding
entries for each field are updated to the new revision if their
values have changed (or if the field is marked as #[no_eq]
).type Struct<'db> = ModuleIndex<'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§impl Debug for ModuleIndex<'_>
impl Debug for ModuleIndex<'_>
Source§impl<'db> Hash for ModuleIndex<'db>
impl<'db> Hash for ModuleIndex<'db>
Source§impl<'db> PartialEq for ModuleIndex<'db>
impl<'db> PartialEq for ModuleIndex<'db>
Source§impl SalsaStructInDb for ModuleIndex<'_>
impl SalsaStructInDb for ModuleIndex<'_>
Source§impl TrackedStructInDb for ModuleIndex<'_>
impl TrackedStructInDb for ModuleIndex<'_>
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 ModuleIndex<'_>
impl Update for ModuleIndex<'_>
impl<'db> Copy for ModuleIndex<'db>
impl<'db> Eq for ModuleIndex<'db>
impl Send for ModuleIndex<'_>
impl<'db> StructuralPartialEq for ModuleIndex<'db>
impl Sync for ModuleIndex<'_>
Auto Trait Implementations§
impl<'db> Freeze for ModuleIndex<'db>
impl<'db> !RefUnwindSafe for ModuleIndex<'db>
impl<'db> Unpin for ModuleIndex<'db>
impl<'db> !UnwindSafe for ModuleIndex<'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<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