Struct cairo_lang_lowering::lower::generators::StructDestructure
source · pub struct StructDestructure {
pub input: VariableId,
pub var_reqs: Vec<VarRequest>,
}
Expand description
Generator for StatementStructDestructure.
Note that we return Vec<VariableId>
rather then Vec<VarUsage>
as the the caller typically
has a more accurate location then the one we have in the var requests.
Fields§
§input: VariableId
Variable that holds the struct value.
var_reqs: Vec<VarRequest>
Variable requests for the newly generated member values.
Implementations§
source§impl StructDestructure
impl StructDestructure
pub fn add( self, ctx: &mut LoweringContext<'_, '_>, builder: &mut StatementsBuilder ) -> Vec<VariableId>
Auto Trait Implementations§
impl RefUnwindSafe for StructDestructure
impl Send for StructDestructure
impl Sync for StructDestructure
impl Unpin for StructDestructure
impl UnwindSafe for StructDestructure
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