Struct cairo_lang_lowering::lower::refs::SemanticLoweringMapping
source · pub struct SemanticLoweringMapping { /* private fields */ }
Expand description
Maps member paths (MemberPath) to lowered variable ids.
Implementations§
source§impl SemanticLoweringMapping
impl SemanticLoweringMapping
sourcepub fn topmost_mapped_containing_member_path(
&mut self,
member_path: MemberPath
) -> Option<MemberPath>
pub fn topmost_mapped_containing_member_path( &mut self, member_path: MemberPath ) -> Option<MemberPath>
Returns the topmost mapped member path containing the given member path, or None no such member path exists in the mapping.
sourcepub fn get_scattered_members(
&mut self,
member_path: &MemberPath
) -> Option<Vec<MemberPath>>
pub fn get_scattered_members( &mut self, member_path: &MemberPath ) -> Option<Vec<MemberPath>>
Returns the scattered members of the given member path, or None if the member path is not scattered.
pub fn get<TContext: StructRecomposer>( &mut self, ctx: TContext, path: &MemberPath ) -> Option<VariableId>
pub fn introduce(&mut self, path: MemberPath, var: VariableId)
pub fn update<TContext: StructRecomposer>( &mut self, ctx: TContext, path: &MemberPath, var: VariableId ) -> Option<()>
Trait Implementations§
source§impl Clone for SemanticLoweringMapping
impl Clone for SemanticLoweringMapping
source§fn clone(&self) -> SemanticLoweringMapping
fn clone(&self) -> SemanticLoweringMapping
Returns a copy 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 Debug for SemanticLoweringMapping
impl Debug for SemanticLoweringMapping
source§impl Default for SemanticLoweringMapping
impl Default for SemanticLoweringMapping
source§fn default() -> SemanticLoweringMapping
fn default() -> SemanticLoweringMapping
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SemanticLoweringMapping
impl Send for SemanticLoweringMapping
impl Sync for SemanticLoweringMapping
impl Unpin for SemanticLoweringMapping
impl UnwindSafe for SemanticLoweringMapping
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