Trait dypdl::CheckVariable

source ·
pub trait CheckVariable<T> {
    // Required method
    fn check_variable(&self, v: T) -> Result<(), ModelErr>;
}
Expand description

Trait for checking if a variable is defined.

Required Methods§

source

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

Check if the variable is defined.

§Errors

If the variable is not defined.

Implementors§