Struct cairo_lang_lowering::objects::Variable
source · pub struct Variable {
pub droppable: InferenceResult<ImplId>,
pub duplicatable: InferenceResult<ImplId>,
pub destruct_impl: InferenceResult<ImplId>,
pub panic_destruct_impl: InferenceResult<ImplId>,
pub ty: TypeId,
pub location: LocationId,
}
Expand description
Lowered variable representation.
Fields§
§droppable: InferenceResult<ImplId>
Can the type be (trivially) dropped.
duplicatable: InferenceResult<ImplId>
Can the type be (trivially) duplicated.
destruct_impl: InferenceResult<ImplId>
A Destruct impl for the type, if found.
panic_destruct_impl: InferenceResult<ImplId>
A PanicDestruct impl for the type, if found.
ty: TypeId
Semantic type of the variable.
location: LocationId
Location of the variable.
Trait Implementations§
source§impl PartialEq for Variable
impl PartialEq 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<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<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.