pub struct ScalarVariable {
pub name: String,
pub value_reference: u32,
pub description: Option<String>,
pub causality: Causality,
pub variability: Option<Variability>,
pub initial: Option<Initial>,
pub elem: ScalarVariableElement,
}Fields§
§name: StringThe full, unique name of the variable.
value_reference: u32A handle of the variable to efficiently identify the variable value in the model interface.
description: Option<String>An optional description string describing the meaning of the variable.
causality: CausalityEnumeration that defines the causality of the variable.
variability: Option<Variability>Enumeration that defines the time dependency of the variable, in other words it defines the time instants when a variable can change its value.
initial: Option<Initial>Enumeration that defines how the variable is initialized. It is not allowed to provide a
value for initial if causality=Input or Independent.
elem: ScalarVariableElementImplementations§
Source§impl ScalarVariable
impl ScalarVariable
pub fn is_continuous_input(&self) -> bool
Trait Implementations§
Source§impl Debug for ScalarVariable
impl Debug for ScalarVariable
Source§impl Default for ScalarVariable
impl Default for ScalarVariable
Source§fn default() -> ScalarVariable
fn default() -> ScalarVariable
Returns the “default value” for a type. Read more
Source§impl<'__input> XmlRead<'__input> for ScalarVariable
impl<'__input> XmlRead<'__input> for ScalarVariable
Auto Trait Implementations§
impl Freeze for ScalarVariable
impl RefUnwindSafe for ScalarVariable
impl Send for ScalarVariable
impl Sync for ScalarVariable
impl Unpin for ScalarVariable
impl UnwindSafe for ScalarVariable
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more