pub enum ExprVarMemberPath {
Var(ExprVar),
Member {
parent: Box<ExprVarMemberPath>,
member_id: MemberId,
stable_ptr: ExprPtr,
concrete_struct_id: ConcreteStructId,
ty: TypeId,
},
}
Expand description
A sequence of member accesses of a variable. For example: a, a.b, a.b.c, …
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ExprVarMemberPath
impl Clone for ExprVarMemberPath
source§fn clone(&self) -> ExprVarMemberPath
fn clone(&self) -> ExprVarMemberPath
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 ExprVarMemberPath
impl Debug for ExprVarMemberPath
source§impl<'a> DebugWithDb<ExprFormatter<'a>> for ExprVarMemberPath
impl<'a> DebugWithDb<ExprFormatter<'a>> for ExprVarMemberPath
source§impl Hash for ExprVarMemberPath
impl Hash for ExprVarMemberPath
source§impl PartialEq for ExprVarMemberPath
impl PartialEq for ExprVarMemberPath
source§fn eq(&self, other: &ExprVarMemberPath) -> bool
fn eq(&self, other: &ExprVarMemberPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<ExprVar, Error> + SemanticRewriter<Box<ExprVarMemberPath>, Error> + SemanticRewriter<MemberId, Error> + SemanticRewriter<ConcreteStructId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ExprVarMemberPath
impl<T: SemanticRewriter<ExprVar, Error> + SemanticRewriter<Box<ExprVarMemberPath>, Error> + SemanticRewriter<MemberId, Error> + SemanticRewriter<ConcreteStructId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ExprVarMemberPath
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ExprVarMemberPath, DiagnosticAdded> for SubstitutionRewriter<'a>
impl<'a> SemanticRewriter<ExprVarMemberPath, DiagnosticAdded> for SubstitutionRewriter<'a>
fn rewrite( &mut self, value: ExprVarMemberPath ) -> Result<ExprVarMemberPath, DiagnosticAdded>
source§impl<'a> SemanticRewriter<ExprVarMemberPath, NoError> for Inference<'a>
impl<'a> SemanticRewriter<ExprVarMemberPath, NoError> for Inference<'a>
fn rewrite( &mut self, value: ExprVarMemberPath ) -> Result<ExprVarMemberPath, NoError>
impl Eq for ExprVarMemberPath
impl StructuralEq for ExprVarMemberPath
impl StructuralPartialEq for ExprVarMemberPath
Auto Trait Implementations§
impl RefUnwindSafe for ExprVarMemberPath
impl Send for ExprVarMemberPath
impl Sync for ExprVarMemberPath
impl Unpin for ExprVarMemberPath
impl UnwindSafe for ExprVarMemberPath
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.