pub struct OperatorDef(/* private fields */);Expand description
An operator definition.
Implementations§
Source§impl OperatorDef
impl OperatorDef
Sourcepub fn lhs(&self) -> Option<SyntaxNode>
pub fn lhs(&self) -> Option<SyntaxNode>
The left-hand side node (IDENT_LHS, PREFIX_LHS, INFIX_LHS or POSTFIX_LHS).
Sourcepub fn parameters(&self) -> Vec<String>
pub fn parameters(&self) -> Vec<String>
Parameter names (identifiers and operator symbols).
Trait Implementations§
Source§impl AstNode for OperatorDef
impl AstNode for OperatorDef
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Whether nodes of
kind can be wrapped.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Wraps
node if it has the right kind.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying node.
Source§impl Clone for OperatorDef
impl Clone for OperatorDef
Source§impl Debug for OperatorDef
impl Debug for OperatorDef
impl Eq for OperatorDef
Source§impl Hash for OperatorDef
impl Hash for OperatorDef
Source§impl PartialEq for OperatorDef
impl PartialEq for OperatorDef
impl StructuralPartialEq for OperatorDef
Auto Trait Implementations§
impl !RefUnwindSafe for OperatorDef
impl !Send for OperatorDef
impl !Sync for OperatorDef
impl !UnwindSafe for OperatorDef
impl Forget for OperatorDef
impl Freeze for OperatorDef
impl Move for OperatorDef
impl Unpin for OperatorDef
impl UnsafeUnpin for OperatorDef
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