pub struct EnrichedSemanticSignature<'db> {
pub params: Vec<ExprVarMemberPath<'db>>,
pub extra_rets: Vec<ExprVarMemberPath<'db>>,
pub return_type: TypeId<'db>,
pub implicits: Vec<TypeId<'db>>,
pub panicable: bool,
pub location: LocationId<'db>,
}Expand description
Signature for lowering a function.
Fields§
§params: Vec<ExprVarMemberPath<'db>>Input params.
extra_rets: Vec<ExprVarMemberPath<'db>>Extra returns - e.g. ref params
return_type: TypeId<'db>Return type.
implicits: Vec<TypeId<'db>>Explicit implicit requirements.
panicable: boolPanicable.
location: LocationId<'db>Location.
Implementations§
Source§impl<'db> EnrichedSemanticSignature<'db>
impl<'db> EnrichedSemanticSignature<'db>
pub fn from_semantic(db: &'db dyn Database, value: &Signature<'db>) -> Self
pub fn is_fully_concrete(&self, db: &dyn Database) -> bool
Trait Implementations§
Source§impl<'db> Clone for EnrichedSemanticSignature<'db>
impl<'db> Clone for EnrichedSemanticSignature<'db>
Source§fn clone(&self) -> EnrichedSemanticSignature<'db>
fn clone(&self) -> EnrichedSemanticSignature<'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<'db> Debug for EnrichedSemanticSignature<'db>
impl<'db> Debug for EnrichedSemanticSignature<'db>
Source§impl<'db> DebugWithDb<'db> for EnrichedSemanticSignature<'db>
impl<'db> DebugWithDb<'db> for EnrichedSemanticSignature<'db>
type Db = dyn Database
fn fmt(&self, f: &mut Formatter<'_>, db: &'db dyn Database) -> 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> From<EnrichedSemanticSignature<'db>> for Signature<'db>
impl<'db> From<EnrichedSemanticSignature<'db>> for Signature<'db>
Source§fn from(signature: EnrichedSemanticSignature<'db>) -> Self
fn from(signature: EnrichedSemanticSignature<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> Hash for EnrichedSemanticSignature<'db>
impl<'db> Hash for EnrichedSemanticSignature<'db>
Source§impl<'db> PartialEq for EnrichedSemanticSignature<'db>
impl<'db> PartialEq for EnrichedSemanticSignature<'db>
Source§fn eq(&self, other: &EnrichedSemanticSignature<'db>) -> bool
fn eq(&self, other: &EnrichedSemanticSignature<'db>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'db, T: SemanticRewriter<Vec<ExprVarMemberPath<'db>>, Error> + SemanticRewriter<TypeId<'db>, Error> + SemanticRewriter<Vec<TypeId<'db>>, Error>, Error> SemanticObject<T, Error> for EnrichedSemanticSignature<'db>
impl<'db, T: SemanticRewriter<Vec<ExprVarMemberPath<'db>>, Error> + SemanticRewriter<TypeId<'db>, Error> + SemanticRewriter<Vec<TypeId<'db>>, Error>, Error> SemanticObject<T, Error> for EnrichedSemanticSignature<'db>
fn default_rewrite(&mut self, rewriter: &mut T) -> Result<RewriteResult, Error>
Source§impl<'a, 'b> SemanticRewriter<EnrichedSemanticSignature<'a>, DiagnosticAdded> for SubstitutionRewriter<'a, 'b>
impl<'a, 'b> SemanticRewriter<EnrichedSemanticSignature<'a>, DiagnosticAdded> for SubstitutionRewriter<'a, 'b>
fn internal_rewrite( &mut self, value: &mut EnrichedSemanticSignature<'a>, ) -> Result<RewriteResult, DiagnosticAdded>
fn rewrite(&mut self, value: T) -> Result<T, Error>
Source§impl<'db> Update for EnrichedSemanticSignature<'db>
impl<'db> Update for EnrichedSemanticSignature<'db>
impl<'db> Eq for EnrichedSemanticSignature<'db>
impl<'db> StructuralPartialEq for EnrichedSemanticSignature<'db>
Auto Trait Implementations§
impl<'db> Freeze for EnrichedSemanticSignature<'db>
impl<'db> RefUnwindSafe for EnrichedSemanticSignature<'db>
impl<'db> Send for EnrichedSemanticSignature<'db>
impl<'db> Sync for EnrichedSemanticSignature<'db>
impl<'db> Unpin for EnrichedSemanticSignature<'db>
impl<'db> UnwindSafe for EnrichedSemanticSignature<'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