pub struct ConstantExpression {
pub constant: f32,
}Expand description
A numeric literal.
Fields§
§constant: f32Implementations§
Source§impl ConstantExpression
impl ConstantExpression
pub fn new(constant: f32) -> Self
pub fn evaluate( &self, _context: &ExpressionEvaluationContext<'_>, ) -> ExpressionVariant
Trait Implementations§
Source§impl Clone for ConstantExpression
impl Clone for ConstantExpression
Source§impl Debug for ConstantExpression
impl Debug for ConstantExpression
Source§impl Display for ConstantExpression
impl Display for ConstantExpression
Source§impl From<ConstantExpression> for Expression
impl From<ConstantExpression> for Expression
Source§fn from(value: ConstantExpression) -> Expression
fn from(value: ConstantExpression) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for ConstantExpression
impl PartialEq for ConstantExpression
impl StructuralPartialEq for ConstantExpression
Auto Trait Implementations§
impl Freeze for ConstantExpression
impl RefUnwindSafe for ConstantExpression
impl Send for ConstantExpression
impl Sync for ConstantExpression
impl Unpin for ConstantExpression
impl UnsafeUnpin for ConstantExpression
impl UnwindSafe for ConstantExpression
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