Struct dypdl::VectorVariable
source · pub struct VectorVariable(/* private fields */);
Expand description
A struct wrapping an id.
Implementations§
Trait Implementations§
source§impl AccessTarget<VectorVariable, Vec<usize>> for Model
impl AccessTarget<VectorVariable, Vec<usize>> for Model
source§fn get_target(&self, variable: VectorVariable) -> Result<Vector, ModelErr>
fn get_target(&self, variable: VectorVariable) -> Result<Vector, ModelErr>
Returns the value in the target state. Read more
source§fn set_target(
&mut self,
variable: VectorVariable,
target: Vector,
) -> Result<(), ModelErr>
fn set_target( &mut self, variable: VectorVariable, target: Vector, ) -> Result<(), ModelErr>
Set the value in the target state Read more
source§impl AddEffect<VectorVariable, VectorExpression> for Transition
impl AddEffect<VectorVariable, VectorExpression> for Transition
source§fn add_effect<V>(
&mut self,
v: VectorVariable,
expression: V,
) -> Result<(), ModelErr>where
VectorExpression: From<V>,
fn add_effect<V>(
&mut self,
v: VectorVariable,
expression: V,
) -> Result<(), ModelErr>where
VectorExpression: From<V>,
Adds an effect. Read more
source§impl CheckVariable<VectorVariable> for StateMetadata
impl CheckVariable<VectorVariable> for StateMetadata
source§fn check_variable(&self, v: VectorVariable) -> Result<(), ModelErr>
fn check_variable(&self, v: VectorVariable) -> Result<(), ModelErr>
Check if the variable is defined. Read more
source§impl Clone for VectorVariable
impl Clone for VectorVariable
source§fn clone(&self) -> VectorVariable
fn clone(&self) -> VectorVariable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VectorVariable
impl Debug for VectorVariable
source§impl GetObjectTypeOf<VectorVariable> for Model
impl GetObjectTypeOf<VectorVariable> for Model
source§fn get_object_type_of(&self, v: VectorVariable) -> Result<ObjectType, ModelErr>
fn get_object_type_of(&self, v: VectorVariable) -> Result<ObjectType, ModelErr>
Returns the object type of the variable. Read more
source§impl GetObjectTypeOf<VectorVariable> for StateMetadata
impl GetObjectTypeOf<VectorVariable> for StateMetadata
source§fn get_object_type_of(&self, v: VectorVariable) -> Result<ObjectType, ModelErr>
fn get_object_type_of(&self, v: VectorVariable) -> Result<ObjectType, ModelErr>
Returns the object type of the variable. Read more
source§impl PartialEq for VectorVariable
impl PartialEq for VectorVariable
source§fn eq(&self, other: &VectorVariable) -> bool
fn eq(&self, other: &VectorVariable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VectorVariable
impl Eq for VectorVariable
impl StructuralPartialEq for VectorVariable
Auto Trait Implementations§
impl Freeze for VectorVariable
impl RefUnwindSafe for VectorVariable
impl Send for VectorVariable
impl Sync for VectorVariable
impl Unpin for VectorVariable
impl UnwindSafe for VectorVariable
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