Struct cairo_lang_semantic::LocalVariable
source · pub struct LocalVariable {
pub id: LocalVarId,
pub ty: TypeId,
pub is_mut: bool,
}
Expand description
Semantic model of a variable.
Fields§
§id: LocalVarId
§ty: TypeId
§is_mut: bool
Implementations§
source§impl LocalVariable
impl LocalVariable
pub fn stable_ptr(&self, db: &dyn DefsGroup) -> TerminalIdentifierPtr
Trait Implementations§
source§impl Clone for LocalVariable
impl Clone for LocalVariable
source§fn clone(&self) -> LocalVariable
fn clone(&self) -> LocalVariable
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 LocalVariable
impl Debug for LocalVariable
source§impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for LocalVariable
impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for LocalVariable
source§impl Hash for LocalVariable
impl Hash for LocalVariable
source§impl PartialEq for LocalVariable
impl PartialEq for LocalVariable
source§fn eq(&self, other: &LocalVariable) -> bool
fn eq(&self, other: &LocalVariable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<LocalVarId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for LocalVariable
impl<T: SemanticRewriter<LocalVarId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for LocalVariable
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<LocalVariable, NoError> for Inference<'a>
impl<'a> SemanticRewriter<LocalVariable, NoError> for Inference<'a>
fn rewrite(&mut self, value: LocalVariable) -> Result<LocalVariable, NoError>
impl Eq for LocalVariable
impl StructuralEq for LocalVariable
impl StructuralPartialEq for LocalVariable
Auto Trait Implementations§
impl RefUnwindSafe for LocalVariable
impl Send for LocalVariable
impl Sync for LocalVariable
impl Unpin for LocalVariable
impl UnwindSafe for LocalVariable
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.§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,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.