pub struct AssignStmt { /* private fields */ }Implementations§
Source§impl AssignStmt
impl AssignStmt
Sourcepub fn value(&self) -> Option<SyntaxNode>
pub fn value(&self) -> Option<SyntaxNode>
The right-hand-side expression’s root node (the last child node,
same convention as InfixExpr::rhs).
Sourcepub fn op_token(&self) -> Option<SyntaxToken>
pub fn op_token(&self) -> Option<SyntaxToken>
The assignment operator token (=, +=, or -= — B0.8 Wave B
tail, issue #1322, decision-log 2026-07-23 “Code-ground sitting”:
“compound/RMW assignment”). Mirrors the brink-dialect’s own
Assignment::op_token (brink-syntax) exactly, including which
operators exist — AssignOp (brink-ir) only has Set/Add/Sub,
so *=//= (lexed as STAR_EQ/SLASH_EQ but never produced by
parser/stmt.rs::assign_stmt) have no lowering target and aren’t
looked for here either.
Trait Implementations§
Source§impl AstNode for AssignStmt
impl AstNode for AssignStmt
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for AssignStmt
impl Clone for AssignStmt
Source§fn clone(&self) -> AssignStmt
fn clone(&self) -> AssignStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AssignStmt
impl Debug for AssignStmt
Source§impl Display for AssignStmt
impl Display for AssignStmt
impl Eq for AssignStmt
Source§impl Hash for AssignStmt
impl Hash for AssignStmt
Source§impl PartialEq for AssignStmt
impl PartialEq for AssignStmt
impl StructuralPartialEq for AssignStmt
Auto Trait Implementations§
impl !RefUnwindSafe for AssignStmt
impl !Send for AssignStmt
impl !Sync for AssignStmt
impl !UnwindSafe for AssignStmt
impl Freeze for AssignStmt
impl Unpin for AssignStmt
impl UnsafeUnpin for AssignStmt
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