pub struct ElementResourceVariable(/* private fields */);
Expand description

A struct wrapping an id.

Implementations§

source§

impl ElementResourceVariable

source

pub fn id(&self) -> usize

Returns the id.

Trait Implementations§

source§

impl AccessPreference<ElementResourceVariable> for Model

source§

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

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

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

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

impl AccessPreference<ElementResourceVariable> for StateMetadata

source§

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

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

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

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

impl AccessTarget<ElementResourceVariable, usize> for Model

source§

fn get_target( &self, variable: ElementResourceVariable ) -> Result<Element, ModelErr>

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

fn set_target( &mut self, variable: ElementResourceVariable, target: Element ) -> Result<(), ModelErr>

Set the value in the target state Read more
source§

impl Add<ElementExpression> for ElementResourceVariable

source§

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

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl Add<ElementResourceVariable> for ElementExpression

source§

fn add(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl Add<ElementResourceVariable> for ElementVariable

source§

fn add(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl Add<ElementResourceVariable> for Element

source§

fn add(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl Add<ElementVariable> for ElementResourceVariable

source§

fn add(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl Add<usize> for ElementResourceVariable

source§

fn add(self, rhs: Element) -> ElementExpression

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl Add for ElementResourceVariable

source§

fn add(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the addition.

§

type Output = ElementExpression

The resulting type after applying the + operator.
source§

impl AddEffect<ElementResourceVariable, ElementExpression> for Transition

source§

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

Adds an effect. Read more
source§

impl CheckVariable<ElementResourceVariable> for StateMetadata

source§

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

Check if the variable is defined. Read more
source§

impl Clone for ElementResourceVariable

source§

fn clone(&self) -> ElementResourceVariable

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 Debug for ElementResourceVariable

source§

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

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

impl Div<ElementExpression> for ElementResourceVariable

source§

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

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl Div<ElementResourceVariable> for ElementExpression

source§

fn div(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl Div<ElementResourceVariable> for ElementVariable

source§

fn div(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl Div<ElementResourceVariable> for Element

source§

fn div(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl Div<ElementVariable> for ElementResourceVariable

source§

fn div(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl Div<usize> for ElementResourceVariable

source§

fn div(self, rhs: Element) -> ElementExpression

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl Div for ElementResourceVariable

source§

fn div(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the division.

§

type Output = ElementExpression

The resulting type after applying the / operator.
source§

impl From<ElementResourceVariable> for ArgumentExpression

source§

fn from(v: ElementResourceVariable) -> ArgumentExpression

Converts to this type from the input type.
source§

impl From<ElementResourceVariable> for ElementExpression

source§

fn from(v: ElementResourceVariable) -> ElementExpression

Converts to this type from the input type.
source§

impl GetObjectTypeOf<ElementResourceVariable> for Model

source§

fn get_object_type_of( &self, v: ElementResourceVariable ) -> Result<ObjectType, ModelErr>

Returns the object type of the variable. Read more
source§

impl GetObjectTypeOf<ElementResourceVariable> for StateMetadata

source§

fn get_object_type_of( &self, v: ElementResourceVariable ) -> Result<ObjectType, ModelErr>

Returns the object type of the variable. Read more
source§

impl MaxMin<ElementExpression> for ElementResourceVariable

§

type Output = ElementExpression

source§

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

Returns an expression representing the maximum.
source§

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

Returns an expression representing the minimum.
source§

impl MaxMin<ElementResourceVariable> for ElementExpression

§

type Output = ElementExpression

source§

fn max(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the minimum.
source§

impl MaxMin<ElementResourceVariable> for ElementVariable

§

type Output = ElementExpression

source§

fn max(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the minimum.
source§

impl MaxMin<ElementResourceVariable> for Element

§

type Output = ElementExpression

source§

fn max(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the minimum.
source§

impl MaxMin<ElementVariable> for ElementResourceVariable

§

type Output = ElementExpression

source§

fn max(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the minimum.
source§

impl MaxMin<usize> for ElementResourceVariable

§

type Output = ElementExpression

source§

fn max(self, rhs: Element) -> ElementExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: Element) -> ElementExpression

Returns an expression representing the minimum.
source§

impl MaxMin for ElementResourceVariable

§

type Output = ElementExpression

source§

fn max(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the maximum.
source§

fn min(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the minimum.
source§

impl Mul<ElementExpression> for ElementResourceVariable

source§

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

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl Mul<ElementResourceVariable> for ElementExpression

source§

fn mul(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl Mul<ElementResourceVariable> for ElementVariable

source§

fn mul(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl Mul<ElementResourceVariable> for Element

source§

fn mul(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl Mul<ElementVariable> for ElementResourceVariable

source§

fn mul(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl Mul<usize> for ElementResourceVariable

source§

fn mul(self, rhs: Element) -> ElementExpression

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl Mul for ElementResourceVariable

source§

fn mul(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the multiplication.

§

type Output = ElementExpression

The resulting type after applying the * operator.
source§

impl PartialEq for ElementResourceVariable

source§

fn eq(&self, other: &ElementResourceVariable) -> 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<ElementExpression> for ElementResourceVariable

source§

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

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl Rem<ElementResourceVariable> for ElementExpression

source§

fn rem(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl Rem<ElementResourceVariable> for ElementVariable

source§

fn rem(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl Rem<ElementResourceVariable> for Element

source§

fn rem(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl Rem<ElementVariable> for ElementResourceVariable

source§

fn rem(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl Rem<usize> for ElementResourceVariable

source§

fn rem(self, rhs: Element) -> ElementExpression

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl Rem for ElementResourceVariable

source§

fn rem(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the remainder.

§

type Output = ElementExpression

The resulting type after applying the % operator.
source§

impl SetElementOperation<ElementResourceVariable> for Set

source§

fn add(self, rhs: ElementResourceVariable) -> SetExpression

Returns a set expression, where an element is added.
source§

fn remove(self, rhs: ElementResourceVariable) -> SetExpression

Returns a set expression, where an element is removed.
source§

impl SetElementOperation<ElementResourceVariable> for SetExpression

source§

fn add(self, rhs: ElementResourceVariable) -> SetExpression

Returns a set expression, where an element is added.
source§

fn remove(self, rhs: ElementResourceVariable) -> SetExpression

Returns a set expression, where an element is removed.
source§

impl SetElementOperation<ElementResourceVariable> for SetVariable

source§

fn add(self, rhs: ElementResourceVariable) -> SetExpression

Returns a set expression, where an element is added.
source§

fn remove(self, rhs: ElementResourceVariable) -> SetExpression

Returns a set expression, where an element is removed.
source§

impl Sub<ElementExpression> for ElementResourceVariable

source§

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

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Sub<ElementResourceVariable> for ElementExpression

source§

fn sub(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Sub<ElementResourceVariable> for ElementVariable

source§

fn sub(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Sub<ElementResourceVariable> for Element

source§

fn sub(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Sub<ElementVariable> for ElementResourceVariable

source§

fn sub(self, rhs: ElementVariable) -> ElementExpression

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Sub<usize> for ElementResourceVariable

source§

fn sub(self, rhs: Element) -> ElementExpression

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Sub for ElementResourceVariable

source§

fn sub(self, rhs: ElementResourceVariable) -> ElementExpression

Returns an expression representing the subtraction.

§

type Output = ElementExpression

The resulting type after applying the - operator.
source§

impl Copy for ElementResourceVariable

source§

impl Eq for ElementResourceVariable

source§

impl StructuralEq for ElementResourceVariable

source§

impl StructuralPartialEq for ElementResourceVariable

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>,