pub struct UnaryExpression {
pub parameter: Box<Expression>,
pub expression_type: ExpressionType,
}Expand description
A unary operator applied to an expression.
Fields§
§parameter: Box<Expression>§expression_type: ExpressionTypeImplementations§
Source§impl UnaryExpression
impl UnaryExpression
pub fn new(parameter: Expression, expression_type: ExpressionType) -> Self
pub fn evaluate( &self, context: &ExpressionEvaluationContext<'_>, ) -> ExpressionVariant
pub fn collect_references(&self, references: &mut HashSet<(String, String)>)
Trait Implementations§
Source§impl Clone for UnaryExpression
impl Clone for UnaryExpression
Source§impl Debug for UnaryExpression
impl Debug for UnaryExpression
Source§impl Display for UnaryExpression
impl Display for UnaryExpression
Source§impl From<UnaryExpression> for Expression
impl From<UnaryExpression> for Expression
Source§fn from(value: UnaryExpression) -> Expression
fn from(value: UnaryExpression) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for UnaryExpression
impl PartialEq for UnaryExpression
impl StructuralPartialEq for UnaryExpression
Auto Trait Implementations§
impl Freeze for UnaryExpression
impl RefUnwindSafe for UnaryExpression
impl Send for UnaryExpression
impl Sync for UnaryExpression
impl Unpin for UnaryExpression
impl UnsafeUnpin for UnaryExpression
impl UnwindSafe for UnaryExpression
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more