Struct cairo_lang_lowering::objects::Variable
source · pub struct Variable {
pub droppable: bool,
pub duplicatable: bool,
pub ref_indices: OrderedHashSet<usize>,
pub ty: TypeId,
}
Expand description
Lowered variable representation.
Fields§
§droppable: bool
Can the type be (trivially) dropped.
duplicatable: bool
Can the type be (trivially) duplicated.
ref_indices: OrderedHashSet<usize>
If this variable is a used as a reference variable (including implicits) of the current function, what are the indices of said reference variables? Note that a lowered variable might be assigned to multiple reference variables.
ty: TypeId
Semantic type of the variable.
Trait Implementations§
source§impl PartialEq<Variable> for Variable
impl PartialEq<Variable> for Variable
impl Eq for Variable
impl StructuralEq for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.