Simulink.RustImporter Class
Namespace: Simulink
Description
Add-On Required: This feature requires the Simulink Support Package for Rust Code add-on.
Use the Simulink.RustImporter class to import C compatible Rust® code into Simulink®. When you import Rust code into Simulink, you can simulate and test custom Rust logic alongside Simulink model components, enabling simulation between Simulink and Rust code. Instances of this class are used to specify external Rust code to import into Simulink.
The Simulink.RustImporter class is a handle class.
Creation
Description
rustObj = Simulink.RustImporter() creates an instance of the
RustImporter class with the LibraryFileName property
set to "untitled".
rustObj = Simulink.RustImporter(,
where ModelName)ModelName is the name of a Simulink library or model specified as a string or character vector, creates an
instance of the RustImporter class with the
LibraryFileName property set to
ModelName.
Properties
Methods
Examples
Version History
Introduced in R2026a