Struct ast::expression::Unary
source · pub struct Unary {
pub operator: TokenKind,
pub operand: Box<Expression>,
pub span: Span,
}Expand description
Represents a unary expression in the SAP language.
For example: -x
Fields§
§operator: TokenKind§operand: Box<Expression>§span: SpanTrait Implementations§
source§impl PartialEq for Unary
impl PartialEq for Unary
impl StructuralPartialEq for Unary
Auto Trait Implementations§
impl RefUnwindSafe for Unary
impl Send for Unary
impl Sync for Unary
impl Unpin for Unary
impl UnwindSafe for Unary
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