pub struct SemanticLoweringMapping<'db> { /* private fields */ }Implementations§
Source§impl<'db> SemanticLoweringMapping<'db>
impl<'db> SemanticLoweringMapping<'db>
Sourcepub fn topmost_mapped_containing_member_path(
&self,
member_path: MemberPath<'db>,
) -> Option<MemberPath<'db>>
pub fn topmost_mapped_containing_member_path( &self, member_path: MemberPath<'db>, ) -> Option<MemberPath<'db>>
Returns the topmost mapped member path containing the given member path, or None no such member path exists in the mapping.
pub fn destructure_closure( &mut self, ctx: &mut BlockStructRecomposer<'_, '_, 'db>, closure_var: VariableId, closure_info: &ClosureInfo<'db>, ) -> Vec<VariableId> ⓘ
pub fn get( &mut self, ctx: BlockStructRecomposer<'_, '_, 'db>, path: &MemberPath<'db>, ) -> Result<VariableId, AssembleValueError<'db>>
pub fn introduce(&mut self, path: MemberPath<'db>, var: VariableId)
pub fn update( &mut self, ctx: &mut BlockStructRecomposer<'_, '_, 'db>, path: &MemberPath<'db>, var: VariableId, ) -> Option<()>
Sourcepub fn mark_as_used(
&mut self,
ctx: BlockStructRecomposer<'_, '_, 'db>,
path: &MemberPath<'db>,
moved: MovedVar<'db>,
)
pub fn mark_as_used( &mut self, ctx: BlockStructRecomposer<'_, '_, 'db>, path: &MemberPath<'db>, moved: MovedVar<'db>, )
Marks the variable at the given path as moved.
This function should be called for non-copyable variables.
Trait Implementations§
Source§impl<'db> Clone for SemanticLoweringMapping<'db>
impl<'db> Clone for SemanticLoweringMapping<'db>
Source§fn clone(&self) -> SemanticLoweringMapping<'db>
fn clone(&self) -> SemanticLoweringMapping<'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 SemanticLoweringMapping<'db>
impl<'db> Debug for SemanticLoweringMapping<'db>
Source§impl<'db> DebugWithDb<'db> for SemanticLoweringMapping<'db>
impl<'db> DebugWithDb<'db> for SemanticLoweringMapping<'db>
type Db = ExprFormatter<'db>
fn fmt(&self, f: &mut Formatter<'_>, db: &ExprFormatter<'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> Default for SemanticLoweringMapping<'db>
impl<'db> Default for SemanticLoweringMapping<'db>
Source§fn default() -> SemanticLoweringMapping<'db>
fn default() -> SemanticLoweringMapping<'db>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'db> Freeze for SemanticLoweringMapping<'db>
impl<'db> RefUnwindSafe for SemanticLoweringMapping<'db>
impl<'db> Send for SemanticLoweringMapping<'db>
impl<'db> Sync for SemanticLoweringMapping<'db>
impl<'db> Unpin for SemanticLoweringMapping<'db>
impl<'db> UnwindSafe for SemanticLoweringMapping<'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<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