Struct dypdl::IntegerResourceVariable

source ·
pub struct IntegerResourceVariable(/* private fields */);
Expand description

A struct wrapping an id.

Implementations§

source§

impl IntegerResourceVariable

source

pub fn abs(self) -> IntegerExpression

Returns an expression representing the absolute value

source§

impl IntegerResourceVariable

source

pub fn id(&self) -> usize

Returns the id.

Trait Implementations§

source§

impl AccessPreference<IntegerResourceVariable> for Model

source§

fn get_preference(&self, v: IntegerResourceVariable) -> Result<bool, ModelErr>

Returns the preference of a resource variable. Read more
source§

fn set_preference( &mut self, v: IntegerResourceVariable, less_is_better: bool, ) -> Result<(), ModelErr>

Sets the preference of a resource variable. Read more
source§

impl AccessPreference<IntegerResourceVariable> for StateMetadata

source§

fn get_preference(&self, v: IntegerResourceVariable) -> Result<bool, ModelErr>

Returns the preference of a resource variable. Read more
source§

fn set_preference( &mut self, v: IntegerResourceVariable, less_is_better: bool, ) -> Result<(), ModelErr>

Sets the preference of a resource variable. Read more
source§

impl AccessTarget<IntegerResourceVariable, i32> for Model

source§

fn get_target(&self, v: IntegerResourceVariable) -> Result<Integer, ModelErr>

Returns the value in the target state. Read more
source§

fn set_target( &mut self, v: IntegerResourceVariable, target: Integer, ) -> Result<(), ModelErr>

Set the value in the target state Read more
source§

impl Add<ContinuousExpression> for IntegerResourceVariable

source§

fn add(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<ContinuousResourceVariable> for IntegerResourceVariable

source§

fn add(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<ContinuousVariable> for IntegerResourceVariable

source§

fn add(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerExpression> for IntegerResourceVariable

source§

fn add(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for ContinuousExpression

source§

fn add(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for ContinuousResourceVariable

source§

fn add(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for ContinuousVariable

source§

fn add(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for IntegerExpression

source§

fn add(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for IntegerVariable

source§

fn add(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for Continuous

source§

fn add(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerResourceVariable> for Integer

source§

fn add(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl Add<IntegerVariable> for IntegerResourceVariable

source§

fn add(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl Add<f64> for IntegerResourceVariable

source§

fn add(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the addition.

§

type Output = ContinuousExpression

The resulting type after applying the + operator.
source§

impl Add<i32> for IntegerResourceVariable

source§

fn add(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl Add for IntegerResourceVariable

source§

fn add(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the addition.

§

type Output = IntegerExpression

The resulting type after applying the + operator.
source§

impl AddEffect<IntegerResourceVariable, IntegerExpression> for Transition

source§

fn add_effect<V>( &mut self, v: IntegerResourceVariable, expression: V, ) -> Result<(), ModelErr>

Adds an effect. Read more
source§

impl CheckVariable<IntegerResourceVariable> for StateMetadata

source§

fn check_variable(&self, v: IntegerResourceVariable) -> Result<(), ModelErr>

Check if the variable is defined. Read more
source§

impl Clone for IntegerResourceVariable

source§

fn clone(&self) -> IntegerResourceVariable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ContinuousBinaryOperation<ContinuousExpression> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<ContinuousResourceVariable> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<ContinuousVariable> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<IntegerResourceVariable> for ContinuousExpression

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<IntegerResourceVariable> for ContinuousResourceVariable

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<IntegerResourceVariable> for ContinuousVariable

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<IntegerResourceVariable> for Continuous

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl ContinuousBinaryOperation<f64> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn pow(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the power.
source§

fn log(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the logarithm.
source§

impl Debug for IntegerResourceVariable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<ContinuousExpression> for IntegerResourceVariable

source§

fn div(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<ContinuousResourceVariable> for IntegerResourceVariable

source§

fn div(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<ContinuousVariable> for IntegerResourceVariable

source§

fn div(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerExpression> for IntegerResourceVariable

source§

fn div(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for ContinuousExpression

source§

fn div(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for ContinuousResourceVariable

source§

fn div(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for ContinuousVariable

source§

fn div(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for IntegerExpression

source§

fn div(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for IntegerVariable

source§

fn div(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for Continuous

source§

fn div(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerResourceVariable> for Integer

source§

fn div(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl Div<IntegerVariable> for IntegerResourceVariable

source§

fn div(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl Div<f64> for IntegerResourceVariable

source§

fn div(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the division.

§

type Output = ContinuousExpression

The resulting type after applying the / operator.
source§

impl Div<i32> for IntegerResourceVariable

source§

fn div(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl Div for IntegerResourceVariable

source§

fn div(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the division.

§

type Output = IntegerExpression

The resulting type after applying the / operator.
source§

impl From<IntegerResourceVariable> for ContinuousExpression

source§

fn from(v: IntegerResourceVariable) -> Self

Converts to this type from the input type.
source§

impl From<IntegerResourceVariable> for IntegerExpression

source§

fn from(v: IntegerResourceVariable) -> Self

Returns an expression representing the resource variable.

source§

impl MaxMin<ContinuousExpression> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn max(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<ContinuousResourceVariable> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn max(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<ContinuousVariable> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn max(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerExpression> for IntegerResourceVariable

§

type Output = IntegerExpression

source§

fn max(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for ContinuousExpression

§

type Output = ContinuousExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for ContinuousResourceVariable

§

type Output = ContinuousExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for ContinuousVariable

§

type Output = ContinuousExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for IntegerExpression

§

type Output = IntegerExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for IntegerVariable

§

type Output = IntegerExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for Continuous

§

type Output = ContinuousExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerResourceVariable> for Integer

§

type Output = IntegerExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl MaxMin<IntegerVariable> for IntegerResourceVariable

§

type Output = IntegerExpression

source§

fn max(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl MaxMin<f64> for IntegerResourceVariable

§

type Output = ContinuousExpression

source§

fn max(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the minimum.
source§

impl MaxMin<i32> for IntegerResourceVariable

§

type Output = IntegerExpression

source§

fn max(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl MaxMin for IntegerResourceVariable

§

type Output = IntegerExpression

source§

fn max(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the minimum.
source§

impl Mul<ContinuousExpression> for IntegerResourceVariable

source§

fn mul(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<ContinuousResourceVariable> for IntegerResourceVariable

source§

fn mul(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<ContinuousVariable> for IntegerResourceVariable

source§

fn mul(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerExpression> for IntegerResourceVariable

source§

fn mul(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for ContinuousExpression

source§

fn mul(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for ContinuousResourceVariable

source§

fn mul(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for ContinuousVariable

source§

fn mul(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for IntegerExpression

source§

fn mul(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for IntegerVariable

source§

fn mul(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for Continuous

source§

fn mul(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerResourceVariable> for Integer

source§

fn mul(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Mul<IntegerVariable> for IntegerResourceVariable

source§

fn mul(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Mul<f64> for IntegerResourceVariable

source§

fn mul(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the multiplication.

§

type Output = ContinuousExpression

The resulting type after applying the * operator.
source§

impl Mul<i32> for IntegerResourceVariable

source§

fn mul(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Mul for IntegerResourceVariable

source§

fn mul(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the multiplication.

§

type Output = IntegerExpression

The resulting type after applying the * operator.
source§

impl Neg for IntegerResourceVariable

source§

fn neg(self) -> Self::Output

Returns an expression representing the negative value

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl PartialEq for IntegerResourceVariable

source§

fn eq(&self, other: &IntegerResourceVariable) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Rem<ContinuousExpression> for IntegerResourceVariable

source§

fn rem(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<ContinuousResourceVariable> for IntegerResourceVariable

source§

fn rem(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<ContinuousVariable> for IntegerResourceVariable

source§

fn rem(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerExpression> for IntegerResourceVariable

source§

fn rem(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for ContinuousExpression

source§

fn rem(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for ContinuousResourceVariable

source§

fn rem(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for ContinuousVariable

source§

fn rem(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for IntegerExpression

source§

fn rem(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for IntegerVariable

source§

fn rem(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for Continuous

source§

fn rem(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerResourceVariable> for Integer

source§

fn rem(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Rem<IntegerVariable> for IntegerResourceVariable

source§

fn rem(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Rem<f64> for IntegerResourceVariable

source§

fn rem(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the remainder.

§

type Output = ContinuousExpression

The resulting type after applying the % operator.
source§

impl Rem<i32> for IntegerResourceVariable

source§

fn rem(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Rem for IntegerResourceVariable

source§

fn rem(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the remainder.

§

type Output = IntegerExpression

The resulting type after applying the % operator.
source§

impl Sub<ContinuousExpression> for IntegerResourceVariable

source§

fn sub(self, rhs: ContinuousExpression) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<ContinuousResourceVariable> for IntegerResourceVariable

source§

fn sub(self, rhs: ContinuousResourceVariable) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<ContinuousVariable> for IntegerResourceVariable

source§

fn sub(self, rhs: ContinuousVariable) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerExpression> for IntegerResourceVariable

source§

fn sub(self, rhs: IntegerExpression) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for ContinuousExpression

source§

fn sub(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for ContinuousResourceVariable

source§

fn sub(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for ContinuousVariable

source§

fn sub(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for IntegerExpression

source§

fn sub(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for IntegerVariable

source§

fn sub(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for Continuous

source§

fn sub(self, rhs: IntegerResourceVariable) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerResourceVariable> for Integer

source§

fn sub(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Sub<IntegerVariable> for IntegerResourceVariable

source§

fn sub(self, rhs: IntegerVariable) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Sub<f64> for IntegerResourceVariable

source§

fn sub(self, rhs: Continuous) -> ContinuousExpression

Returns an expression representing the subtraction.

§

type Output = ContinuousExpression

The resulting type after applying the - operator.
source§

impl Sub<i32> for IntegerResourceVariable

source§

fn sub(self, rhs: Integer) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Sub for IntegerResourceVariable

source§

fn sub(self, rhs: IntegerResourceVariable) -> IntegerExpression

Returns an expression representing the subtraction.

§

type Output = IntegerExpression

The resulting type after applying the - operator.
source§

impl Copy for IntegerResourceVariable

source§

impl Eq for IntegerResourceVariable

source§

impl StructuralPartialEq for IntegerResourceVariable

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,