pub struct PrefixExpression {
pub operator: PrefixOperator,
pub operand: Box<Expr>,
}Fields§
§operator: PrefixOperator§operand: Box<Expr>Implementations§
Source§impl PrefixExpression
impl PrefixExpression
pub fn new(operator: PrefixOperator, operand: Expr) -> Self
Trait Implementations§
Source§impl Debug for PrefixExpression
impl Debug for PrefixExpression
Source§impl From<PrefixExpression> for Component
impl From<PrefixExpression> for Component
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpression> for Expr
impl From<PrefixExpression> for Expr
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpression> for OperatorExpr
impl From<PrefixExpression> for OperatorExpr
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpression> for SequenceElement
impl From<PrefixExpression> for SequenceElement
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl From<PrefixExpression> for SyntaxNode
impl From<PrefixExpression> for SyntaxNode
Source§fn from(value: PrefixExpression) -> Self
fn from(value: PrefixExpression) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for PrefixExpression
impl PrettyTree for PrefixExpression
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for PrefixExpressionwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for PrefixExpressionwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToTokens for PrefixExpression
impl ToTokens for PrefixExpression
Auto Trait Implementations§
impl Freeze for PrefixExpression
impl RefUnwindSafe for PrefixExpression
impl Send for PrefixExpression
impl Sync for PrefixExpression
impl Unpin for PrefixExpression
impl UnsafeUnpin for PrefixExpression
impl UnwindSafe for PrefixExpression
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