pub struct ParamId<'db>(/* private fields */);Implementations§
Source§impl ParamId<'static>
impl ParamId<'static>
pub fn ingredient(zalsa: &Zalsa) -> &IngredientImpl<ParamId<'static>>
Source§impl<'db> ParamId<'db>
impl<'db> ParamId<'db>
pub fn new<Db_, T0>(db: &'db Db_, long: T0) -> ParamId<'db>where
T0: Lookup<ParamLongId<'db>> + Hash,
Db_: Database + ?Sized,
ParamLongId<'db>: HashEqLike<T0>,
pub fn long<Db_>(self, db: &'db Db_) -> &'db ParamLongId<'db>
Source§impl ParamId<'_>
impl ParamId<'_>
Sourcepub fn default_debug_fmt(
this: ParamId<'_>,
f: &mut Formatter<'_>,
) -> Result<(), Error>where
ParamLongId<'db>: for<'db> Debug,
pub fn default_debug_fmt(
this: ParamId<'_>,
f: &mut Formatter<'_>,
) -> Result<(), Error>where
ParamLongId<'db>: for<'db> Debug,
Default debug formatting for this struct (may be useful if you define your own Debug impl)
Source§impl<'db> ParamId<'db>
impl<'db> ParamId<'db>
pub fn from_intern_id(intern_id: Id) -> ParamId<'db>
pub fn as_intern_id(self) -> Id
Source§impl<'db> ParamId<'db>
impl<'db> ParamId<'db>
pub fn stable_ptr( &self, db: &'db (dyn Database + 'static), ) -> <Param<'db> as TypedSyntaxNode<'db>>::StablePtr
Trait Implementations§
Source§impl<'db> DebugWithDb<'db> for ParamId<'db>
impl<'db> DebugWithDb<'db> for ParamId<'db>
type Db = dyn Database
fn fmt( &self, f: &mut Formatter<'_>, db: &'db <ParamId<'db> as DebugWithDb<'db>>::Db, ) -> Result<(), Error>
fn debug<'me>(&'me self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>where
Self: Sized + 'me,
fn into_debug<'me>(self, db: &'db Self::Db) -> DebugWith<'me, 'db, Self::Db>where
Self: Sized + 'me,
Source§impl<'db> LanguageElementId<'db> for ParamId<'db>
impl<'db> LanguageElementId<'db> for ParamId<'db>
fn module_id(&self, db: &'db (dyn Database + 'static)) -> ModuleId<'db>
fn untyped_stable_ptr( &self, db: &'db (dyn Database + 'static), ) -> SyntaxStablePtrId<'db>
fn stable_location( &self, db: &'db (dyn Database + 'static), ) -> StableLocation<'db>
fn parent_module(&self, db: &'db (dyn Database + 'static)) -> ModuleId<'db>
fn module_data( &self, db: &'db (dyn Database + 'static), ) -> Result<ModuleData<'db>, DiagnosticAdded>
Source§impl<'db> NamedLanguageElementId<'db> for ParamId<'db>
impl<'db> NamedLanguageElementId<'db> for ParamId<'db>
fn name(&self, db: &'db (dyn Database + 'static)) -> SmolStrId<'db>
fn name_identifier( &'db self, db: &'db (dyn Database + 'static), ) -> TerminalIdentifier<'db>
Source§impl<'db> OptionFrom<VarId<'db>> for ParamId<'db>
impl<'db> OptionFrom<VarId<'db>> for ParamId<'db>
Source§impl<'a, 'r> SemanticRewriter<ParamId<'a>, DiagnosticAdded> for SubstitutionRewriter<'a, 'r>
impl<'a, 'r> SemanticRewriter<ParamId<'a>, DiagnosticAdded> for SubstitutionRewriter<'a, 'r>
fn internal_rewrite( &mut self, _value: &mut ParamId<'a>, ) -> Result<RewriteResult, DiagnosticAdded>
fn rewrite(&mut self, value: T) -> Result<T, Error>
Source§impl<'db> TopLevelLanguageElementId<'db> for ParamId<'db>
impl<'db> TopLevelLanguageElementId<'db> for ParamId<'db>
impl<'db> Copy for ParamId<'db>
impl<'db> Eq for ParamId<'db>
impl<'db> Send for ParamId<'db>
impl<'db> StructuralPartialEq for ParamId<'db>
impl<'db> Sync for ParamId<'db>
Auto Trait Implementations§
impl<'db> Freeze for ParamId<'db>
impl<'db> RefUnwindSafe for ParamId<'db>
impl<'db> Unpin for ParamId<'db>
impl<'db> UnwindSafe for ParamId<'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