Struct cairo_lang_lowering::objects::Variable
source · pub struct Variable {
pub droppable: InferenceResult<ImplId>,
pub duplicatable: InferenceResult<ImplId>,
pub destruct_impl: InferenceResult<ImplId>,
pub ty: TypeId,
pub location: StableLocationOption,
}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.
ty: TypeIdSemantic type of the variable.
location: StableLocationOptionLocation 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<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 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.