pub struct AssignmentNode {
pub lhs: ExprKind,
pub rhs: ExprKind,
}
Expand description
Represents a statement node in the AST, such as variable = value
.
Fields§
§lhs: ExprKind
The left-hand side of the statement, usually a variable.
rhs: ExprKind
The right-hand side of the statement, the value to assign.
Implementations§
Source§impl AssignmentNode
impl AssignmentNode
Trait Implementations§
Source§impl Clone for AssignmentNode
impl Clone for AssignmentNode
Source§fn clone(&self) -> AssignmentNode
fn clone(&self) -> AssignmentNode
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 AssignmentNode
impl Debug for AssignmentNode
Source§impl<'de> Deserialize<'de> for AssignmentNode
impl<'de> Deserialize<'de> for AssignmentNode
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<AssignmentNode> for AstKind
impl From<AssignmentNode> for AstKind
Source§fn from(id: AssignmentNode) -> Self
fn from(id: AssignmentNode) -> Self
Converts to this type from the input type.
Source§impl From<AssignmentNode> for P<AstKind>
impl From<AssignmentNode> for P<AstKind>
Source§fn from(id: AssignmentNode) -> Self
fn from(id: AssignmentNode) -> Self
Converts to this type from the input type.
Source§impl From<AssignmentNode> for P<StatementKind>
impl From<AssignmentNode> for P<StatementKind>
Source§fn from(id: AssignmentNode) -> Self
fn from(id: AssignmentNode) -> Self
Converts to this type from the input type.
Source§impl From<AssignmentNode> for StatementKind
impl From<AssignmentNode> for StatementKind
Source§fn from(id: AssignmentNode) -> Self
fn from(id: AssignmentNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AssignmentNode
impl PartialEq for AssignmentNode
Source§impl Serialize for AssignmentNode
impl Serialize for AssignmentNode
impl Eq for AssignmentNode
Auto Trait Implementations§
impl Freeze for AssignmentNode
impl RefUnwindSafe for AssignmentNode
impl Send for AssignmentNode
impl Sync for AssignmentNode
impl Unpin for AssignmentNode
impl UnwindSafe for AssignmentNode
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
Compare self to
key
and return true
if they are equal.