import
Class: Simulink.RustImporter
Namespace: Simulink
Description
Add-On Required: This feature requires the Simulink Support Package for Rust Code add-on.
,
where success = import(rustObj)rustObj is an object of class Simulink.RustImporter,
parses the specified Rust® code and imports it into Simulink® with default import options. If the Rust code was not previously parsed or if the code has changed since the code was
parsed, then the ParseInfo property of rustObj is
populated or repopulated with the information resulting from the parse.
parses the specified Rust code and imports it into Simulink with options based on the specified name-value arguments.success = import(rustObj, Name1 = Value1,...,NameN = ValueN)
Input Arguments
Name-Value Arguments
Output Arguments
Examples
Version History
Introduced in R2026a