pub struct BlockIdLt<'db>(pub(crate) Id, pub(crate) PhantomData<fn() -> &'db ()>);Tuple Fields§
§0: Id§1: PhantomData<fn() -> &'db ()>Implementations§
Source§impl BlockIdLt<'static>
impl BlockIdLt<'static>
pub fn ingredient(db: &dyn Database) -> &IngredientImpl<Self>
pub(crate) fn ingredient_(zalsa: &Zalsa) -> &IngredientImpl<Self>
Source§impl<'db> BlockIdLt<'db>
impl<'db> BlockIdLt<'db>
pub fn new_<Db_>(
db: &'db Db_,
ast_id: AstId<BlockExpr>,
module: ModuleIdLt<'db>,
) -> Selfwhere
Db_: ?Sized + Database,
pub fn ast_id<Db_>(self, db: &'db Db_) -> AstId<BlockExpr>where
Db_: ?Sized + Database,
Sourcepub fn module<Db_>(self, db: &'db Db_) -> ModuleIdLt<'db>where
Db_: ?Sized + Database,
pub fn module<Db_>(self, db: &'db Db_) -> ModuleIdLt<'db>where
Db_: ?Sized + Database,
The containing module.
Source§impl<'_db> BlockIdLt<'_db>
impl<'_db> BlockIdLt<'_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> BlockIdLt<'db>
impl<'db> BlockIdLt<'db>
pub fn new( db: &'db dyn SourceDatabase, ast_id: AstId<BlockExpr>, module: ModuleIdLt<'db>, token: TrackedStructToken, ) -> Self
Trait Implementations§
Source§impl Configuration for BlockIdLt<'static>
impl Configuration for BlockIdLt<'static>
const LOCATION: Location
Source§const DEBUG_NAME: &'static str = "BlockIdLt"
const DEBUG_NAME: &'static str = "BlockIdLt"
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> = (InFileWrapper<HirFileId, FileAstId<BlockExpr>>, ModuleIdLt<'db>)
type Fields<'db> = (InFileWrapper<HirFileId, FileAstId<BlockExpr>>, ModuleIdLt<'db>)
A (possibly empty) tuple of the fields for this struct.
type Revisions = [AtomicRevision; 0]
type Struct<'db> = BlockIdLt<'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§fn update_fields<'db>(
current_revision: Revision_,
revisions: &Self::Revisions,
old_fields: &mut Self::Fields<'db>,
new_fields: Self::Fields<'db>,
) -> bool
fn update_fields<'db>( current_revision: Revision_, revisions: &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 moreimpl<'db> Copy for BlockIdLt<'db>
impl<'db> Eq for BlockIdLt<'db>
Source§impl<'db> Ord for BlockIdLt<'db>
impl<'db> Ord for BlockIdLt<'db>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'db> PartialOrd for BlockIdLt<'db>
impl<'db> PartialOrd for BlockIdLt<'db>
Source§impl SalsaStructInDb for BlockIdLt<'_>
impl SalsaStructInDb for BlockIdLt<'_>
Source§const LEAF_TYPE_IDS: &'static [ConstTypeId]
const LEAF_TYPE_IDS: &'static [ConstTypeId]
The type IDs of all concrete (leaf) salsa struct types that this type can contain. Read more
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§fn cast(id: Id, type_id: TypeId) -> Option<Self>
fn cast(id: Id, type_id: TypeId) -> Option<Self>
Plumbing to support nested salsa supertypes. Read more
Source§unsafe fn memo_table(
zalsa: &Zalsa,
id: Id,
current_revision: Revision,
) -> MemoTableWithTypes<'_>
unsafe fn memo_table( zalsa: &Zalsa, id: Id, current_revision: Revision, ) -> MemoTableWithTypes<'_>
Return the memo table associated with
id. Read moreimpl SalsaValue for BlockIdLt<'_>
impl Send for BlockIdLt<'_>
impl<'db> StructuralPartialEq for BlockIdLt<'db>
impl Sync for BlockIdLt<'_>
Auto Trait Implementations§
impl<'db> Freeze for BlockIdLt<'db>
impl<'db> RefUnwindSafe for BlockIdLt<'db>
impl<'db> Unpin for BlockIdLt<'db>
impl<'db> UnsafeUnpin for BlockIdLt<'db>
impl<'db> UnwindSafe for BlockIdLt<'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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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> ⓘ
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