pub struct AssignmentExpr(/* private fields */);Implementations§
Source§impl AssignmentExpr
impl AssignmentExpr
Sourcepub fn op_kind(&self) -> Option<SyntaxKind>
pub fn op_kind(&self) -> Option<SyntaxKind>
The assignment operator kind. Returns one of ASSIGN_LEFT (<-),
ASSIGN_RIGHT (->), SUPER_ASSIGN (<<-), SUPER_ASSIGN_RIGHT
(->>), ASSIGN_EQ (=), or WALRUS (:=).
Sourcepub fn op_token(&self) -> Option<SyntaxToken<RLanguage>>
pub fn op_token(&self) -> Option<SyntaxToken<RLanguage>>
The operator token, if present.
Sourcepub fn target_element(&self) -> Option<SyntaxElement<RLanguage>>
pub fn target_element(&self) -> Option<SyntaxElement<RLanguage>>
The element on the target side of the operator (the side that becomes
the binding). For <-/=/<<-/:= this is the left element; for
->/->> it is the right element.
Sourcepub fn value_element(&self) -> Option<SyntaxElement<RLanguage>>
pub fn value_element(&self) -> Option<SyntaxElement<RLanguage>>
The element on the value side of the operator.
Sourcepub fn target_name(&self) -> Option<SmolStr>
pub fn target_name(&self) -> Option<SmolStr>
If the target is a simple IDENT (or backtick-quoted identifier), the
bound name as a SmolStr. Returns None for complex LHS like
dim(x) <- ..., x[1] <- ..., x$y <- ....
Sourcepub fn target_name_token(&self) -> Option<SyntaxToken<RLanguage>>
pub fn target_name_token(&self) -> Option<SyntaxToken<RLanguage>>
The target name token, useful when the binding site’s range is needed.
Trait Implementations§
Source§impl AstNode for AssignmentExpr
impl AstNode for AssignmentExpr
Source§impl Clone for AssignmentExpr
impl Clone for AssignmentExpr
Source§fn clone(&self) -> AssignmentExpr
fn clone(&self) -> AssignmentExpr
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 AssignmentExpr
impl Debug for AssignmentExpr
impl Eq for AssignmentExpr
Source§impl Hash for AssignmentExpr
impl Hash for AssignmentExpr
Source§impl PartialEq for AssignmentExpr
impl PartialEq for AssignmentExpr
impl StructuralPartialEq for AssignmentExpr
Auto Trait Implementations§
impl !RefUnwindSafe for AssignmentExpr
impl !Send for AssignmentExpr
impl !Sync for AssignmentExpr
impl !UnwindSafe for AssignmentExpr
impl Freeze for AssignmentExpr
impl Unpin for AssignmentExpr
impl UnsafeUnpin for AssignmentExpr
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