pub struct MemberAccessNode {
pub lhs: Box<AssignableKind>,
pub rhs: Box<AssignableKind>,
pub ssa_version: Option<SsaVersion>,
}
Expand description
Represents a member access node in the AST, such as object.field
.
Fields§
§lhs: Box<AssignableKind>
The left-hand side of the member access, such as object
.
rhs: Box<AssignableKind>
The right-hand side of the member access, such as field
.
ssa_version: Option<SsaVersion>
Represents the SSA version of a variable.
Implementations§
Source§impl MemberAccessNode
impl MemberAccessNode
Sourcepub fn new(
lhs: Box<AssignableKind>,
rhs: Box<AssignableKind>,
) -> Result<Self, AstNodeError>
pub fn new( lhs: Box<AssignableKind>, rhs: Box<AssignableKind>, ) -> Result<Self, AstNodeError>
Trait Implementations§
Source§impl AstVisitable for MemberAccessNode
impl AstVisitable for MemberAccessNode
Source§impl Clone for MemberAccessNode
impl Clone for MemberAccessNode
Source§fn clone(&self) -> MemberAccessNode
fn clone(&self) -> MemberAccessNode
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 MemberAccessNode
impl Debug for MemberAccessNode
Source§impl<'de> Deserialize<'de> for MemberAccessNode
impl<'de> Deserialize<'de> for MemberAccessNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MemberAccessNode> for AssignableKind
impl From<MemberAccessNode> for AssignableKind
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for AstKind
impl From<MemberAccessNode> for AstKind
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for Box<AssignableKind>
impl From<MemberAccessNode> for Box<AssignableKind>
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for Box<AstKind>
impl From<MemberAccessNode> for Box<AstKind>
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for Box<ExprKind>
impl From<MemberAccessNode> for Box<ExprKind>
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl From<MemberAccessNode> for ExprKind
impl From<MemberAccessNode> for ExprKind
Source§fn from(id: MemberAccessNode) -> Self
fn from(id: MemberAccessNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemberAccessNode
impl PartialEq for MemberAccessNode
Source§impl Serialize for MemberAccessNode
impl Serialize for MemberAccessNode
impl Eq for MemberAccessNode
Auto Trait Implementations§
impl Freeze for MemberAccessNode
impl RefUnwindSafe for MemberAccessNode
impl Send for MemberAccessNode
impl Sync for MemberAccessNode
impl Unpin for MemberAccessNode
impl UnwindSafe for MemberAccessNode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.