pub enum Unary {
Not(Box<Unary>),
Positive(Box<Unary>),
Negative(Box<Unary>),
CastBool(Box<Unary>),
CastDate(Box<Unary>),
CastNumber(Box<Unary>),
CastTask(Box<Unary>),
CastText(Box<Unary>),
Primary(Box<Primary>),
}Expand description
Unary expression node.
Flattened AST for unary operators and primary expressions.
Variants§
Not(Box<Unary>)
!operand
Positive(Box<Unary>)
+operand
Negative(Box<Unary>)
-operand
CastBool(Box<Unary>)
(Bool)operand
CastDate(Box<Unary>)
(Date)operand
CastNumber(Box<Unary>)
(Number)operand
CastTask(Box<Unary>)
(Task)operand
CastText(Box<Unary>)
(Text)operand
Primary(Box<Primary>)
Primary or postfix expression.
Implementations§
Trait Implementations§
Source§impl ExpressionLike for Unary
impl ExpressionLike for Unary
Source§impl WriterLike for Unary
impl WriterLike for Unary
Source§fn to_stringized(&self) -> String
fn to_stringized(&self) -> String
Return a string representation (raw unsafe output).
Source§fn to_sanitized(&self) -> String
fn to_sanitized(&self) -> String
Return a sanitized string representation (escaped for safe output).
Source§fn to_expressionized(&self) -> String
fn to_expressionized(&self) -> String
Return a sanitized string representation (escaped for safe output).
impl StructuralPartialEq for Unary
Auto Trait Implementations§
impl Freeze for Unary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.