pub struct Model {
pub entry: &'static MachineEntry,
pub config_text: String,
pub lang: String,
pub variables: Vec<Variable>,
pub guid: String,
pub xml: String,
pub fmi: u8,
}Expand description
An FMU’s content apart from its binaries: the machine, the config as text, and the model description generated from them.
Fields§
§entry: &'static MachineEntry§config_text: String§lang: String§variables: Vec<Variable>§guid: StringChanges whenever the model description does: a hash of it.
xml: String§fmi: u8The FMI version of the model description: 2 or 3.
Implementations§
Source§impl Model
impl Model
Sourcepub fn new(
entry: &'static MachineEntry,
config_text: &str,
lang: &str,
) -> Result<Self, ConfigError>
pub fn new( entry: &'static MachineEntry, config_text: &str, lang: &str, ) -> Result<Self, ConfigError>
An FMI 2.0 FMU. config_text is read as a config file (load_config); lang is the language of the descriptions.
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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