pub enum IntegerParameter {
Literal(i64),
Variable(String),
ValueArgumentReference {
name: String,
},
BinaryExpression {
op: BinaryOp,
left: Box<Self>,
right: Box<Self>,
},
Conditional {
condition: Box<BooleanExpr>,
then_value: Box<Self>,
else_value: Box<Self>,
},
Call {
function: NumericFunction,
arguments: Vec<Self>,
},
}Available on crate feature
parse only.Expand description
An integer literal, named parameter, or unevaluated numeric expression.
Variants§
Literal(i64)
A known integer value.
Variable(String)
A name whose value depends on a function call.
ValueArgumentReference
An integer supplied by the value of a named function argument.
BinaryExpression
A binary expression, retained without evaluation.
Fields
Conditional
A ternary conditional, retained without selecting a branch.
Fields
§
condition: Box<BooleanExpr>The condition to test when evaluating the derivation.
Call
A supported numeric function call, retained without evaluation.
Fields
§
function: NumericFunctionThe numeric function being called.
Implementations§
Source§impl IntegerParameter
impl IntegerParameter
Sourcepub fn is_concrete(&self) -> bool
pub fn is_concrete(&self) -> bool
Returns whether this parameter is a literal rather than an unresolved expression.
Trait Implementations§
Source§impl Clone for IntegerParameter
impl Clone for IntegerParameter
Source§impl Debug for IntegerParameter
impl Debug for IntegerParameter
Source§impl Display for IntegerParameter
impl Display for IntegerParameter
Source§impl PartialEq for IntegerParameter
impl PartialEq for IntegerParameter
impl StructuralPartialEq for IntegerParameter
Auto Trait Implementations§
impl Forget for IntegerParameter
impl Freeze for IntegerParameterwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const IntegerParameter is !null: Freeze,
PhantomData<IntegerParameter>: Freeze,
*const BooleanExpr is !null: Freeze,
PhantomData<BooleanExpr>: Freeze,
impl Move for IntegerParameter
impl RefUnwindSafe for IntegerParameter
impl Send for IntegerParameter
impl Sync for IntegerParameter
impl Unpin for IntegerParameter
impl UnsafeUnpin for IntegerParameterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const IntegerParameter is !null: UnsafeUnpin,
PhantomData<IntegerParameter>: UnsafeUnpin,
*const BooleanExpr is !null: UnsafeUnpin,
PhantomData<BooleanExpr>: UnsafeUnpin,
impl UnwindSafe for IntegerParameterwhere
RawVecInner: UnwindSafe,
BoxRaw<IntegerParameter>: UnwindSafe,
BoxRaw<BooleanExpr>: UnwindSafe,
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