pub struct ConcreteFunctionWithBodyId<'db>(/* private fields */);Implementations§
Source§impl ConcreteFunctionWithBodyId<'static>
impl ConcreteFunctionWithBodyId<'static>
pub fn ingredient(zalsa: &Zalsa) -> &IngredientImpl<Self>
Source§impl<'db> ConcreteFunctionWithBodyId<'db>
impl<'db> ConcreteFunctionWithBodyId<'db>
pub fn new<Db_, T0: Lookup<ConcreteFunctionWithBody<'db>> + Hash>( db: &'db Db_, long: T0, ) -> Self
pub fn long<Db_>(self, db: &'db Db_) -> &'db ConcreteFunctionWithBody<'db>
Source§impl ConcreteFunctionWithBodyId<'_>
impl ConcreteFunctionWithBodyId<'_>
Sourcepub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Resultwhere
for<'db> ConcreteFunctionWithBody<'db>: Debug,
pub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Resultwhere
for<'db> ConcreteFunctionWithBody<'db>: Debug,
Default debug formatting for this struct (may be useful if you define your own Debug impl)
Source§impl<'db> ConcreteFunctionWithBodyId<'db>
impl<'db> ConcreteFunctionWithBodyId<'db>
pub fn from_intern_id(intern_id: Id) -> Self
pub fn as_intern_id(self) -> Id
Source§impl<'db> ConcreteFunctionWithBodyId<'db>
impl<'db> ConcreteFunctionWithBodyId<'db>
pub fn function_with_body_id( &self, db: &'db dyn Database, ) -> FunctionWithBodyId<'db>
pub fn substitution( &self, db: &'db dyn Database, ) -> Maybe<GenericSubstitution<'db>>
pub fn from_no_generics_free( db: &'db dyn Database, free_function_id: FreeFunctionId<'db>, ) -> Option<Self>
pub fn from_generic( db: &'db dyn Database, function_id: FunctionWithBodyId<'db>, ) -> Maybe<Self>
pub fn concrete(&self, db: &'db dyn Database) -> Maybe<ConcreteFunction<'db>>
pub fn function_id(&self, db: &'db dyn Database) -> Maybe<FunctionId<'db>>
pub fn generic_function( &self, db: &'db dyn Database, ) -> GenericFunctionWithBodyId<'db>
pub fn name(&self, db: &'db dyn Database) -> SmolStrId<'db>
pub fn full_path(&self, db: &dyn Database) -> String
pub fn stable_location(&self, db: &'db dyn Database) -> StableLocation<'db>
pub fn is_panic_destruct_fn(&self, db: &dyn Database) -> Maybe<bool>
Trait Implementations§
Source§impl<'db> Clone for ConcreteFunctionWithBodyId<'db>
impl<'db> Clone for ConcreteFunctionWithBodyId<'db>
Source§fn clone(&self) -> ConcreteFunctionWithBodyId<'db>
fn clone(&self) -> ConcreteFunctionWithBodyId<'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 ConcreteFunctionWithBodyId<'static>
impl Configuration for ConcreteFunctionWithBodyId<'static>
const LOCATION: Location
const DEBUG_NAME: &'static str = "ConcreteFunctionWithBodyId"
const REVISIONS: NonZeroUsize
Source§type Fields<'a> = (ConcreteFunctionWithBody<'a>,)
type Fields<'a> = (ConcreteFunctionWithBody<'a>,)
The fields of the struct being interned.
Source§type Struct<'db> = ConcreteFunctionWithBodyId<'db>
type Struct<'db> = ConcreteFunctionWithBodyId<'db>
The end user struct
Source§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> Debug for ConcreteFunctionWithBodyId<'db>
impl<'db> Debug for ConcreteFunctionWithBodyId<'db>
Source§impl<'db> DebugWithDb<'db> for ConcreteFunctionWithBodyId<'db>
impl<'db> DebugWithDb<'db> for ConcreteFunctionWithBodyId<'db>
type Db = dyn Database
fn fmt(&self, f: &mut Formatter<'_>, db: &'db Self::Db) -> Result
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> HasJar for ConcreteFunctionWithBodyId<'db>
impl<'db> HasJar for ConcreteFunctionWithBodyId<'db>
Source§impl<'db> Hash for ConcreteFunctionWithBodyId<'db>
impl<'db> Hash for ConcreteFunctionWithBodyId<'db>
Source§impl<'db> Intern<'db, ConcreteFunctionWithBodyId<'db>> for ConcreteFunctionWithBody<'db>
impl<'db> Intern<'db, ConcreteFunctionWithBodyId<'db>> for ConcreteFunctionWithBody<'db>
fn intern(self, db: &'db dyn Database) -> ConcreteFunctionWithBodyId<'db>
Source§impl<'db> PartialEq for ConcreteFunctionWithBodyId<'db>
impl<'db> PartialEq for ConcreteFunctionWithBodyId<'db>
Source§fn eq(&self, other: &ConcreteFunctionWithBodyId<'db>) -> bool
fn eq(&self, other: &ConcreteFunctionWithBodyId<'db>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'db> SalsaStructInDb for ConcreteFunctionWithBodyId<'db>
impl<'db> SalsaStructInDb for ConcreteFunctionWithBodyId<'db>
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<'a, Error, TRewriter: HasDb<&'a dyn Database> + SemanticRewriter<ConcreteFunctionWithBody<'a>, Error>> SemanticObject<TRewriter, Error> for ConcreteFunctionWithBodyId<'a>
impl<'a, Error, TRewriter: HasDb<&'a dyn Database> + SemanticRewriter<ConcreteFunctionWithBody<'a>, Error>> SemanticObject<TRewriter, Error> for ConcreteFunctionWithBodyId<'a>
fn default_rewrite( &mut self, rewriter: &mut TRewriter, ) -> Result<RewriteResult, Error>
Source§impl<'a, 'r> SemanticRewriter<ConcreteFunctionWithBodyId<'a>, DiagnosticAdded> for SubstitutionRewriter<'a, 'r>
impl<'a, 'r> SemanticRewriter<ConcreteFunctionWithBodyId<'a>, DiagnosticAdded> for SubstitutionRewriter<'a, 'r>
fn internal_rewrite( &mut self, value: &mut ConcreteFunctionWithBodyId<'a>, ) -> Result<RewriteResult, DiagnosticAdded>
fn rewrite(&mut self, value: T) -> Result<T, Error>
Source§impl<'a, 'mt> SemanticRewriter<ConcreteFunctionWithBodyId<'a>, NoError> for Inference<'a, 'mt>
impl<'a, 'mt> SemanticRewriter<ConcreteFunctionWithBodyId<'a>, NoError> for Inference<'a, 'mt>
fn internal_rewrite( &mut self, value: &mut ConcreteFunctionWithBodyId<'a>, ) -> Result<RewriteResult, NoError>
fn rewrite(&mut self, value: T) -> Result<T, Error>
Source§impl<'db> UnstableSalsaId for ConcreteFunctionWithBodyId<'db>
impl<'db> UnstableSalsaId for ConcreteFunctionWithBodyId<'db>
fn get_internal_id(&self) -> Id
Source§impl<'db> Update for ConcreteFunctionWithBodyId<'db>
impl<'db> Update for ConcreteFunctionWithBodyId<'db>
impl<'db> Copy for ConcreteFunctionWithBodyId<'db>
impl<'db> Eq for ConcreteFunctionWithBodyId<'db>
impl<'db> Send for ConcreteFunctionWithBodyId<'db>
impl<'db> StructuralPartialEq for ConcreteFunctionWithBodyId<'db>
impl<'db> Sync for ConcreteFunctionWithBodyId<'db>
Auto Trait Implementations§
impl<'db> Freeze for ConcreteFunctionWithBodyId<'db>
impl<'db> RefUnwindSafe for ConcreteFunctionWithBodyId<'db>
impl<'db> Unpin for ConcreteFunctionWithBodyId<'db>
impl<'db> UnwindSafe for ConcreteFunctionWithBodyId<'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