主要内容

Simulink.RustImporter.Options Class

Namespace: Simulink.RustImporter

Specify additional import options for Simulink.RustImporter class

Since R2026a

Description

Add-On Required: This feature requires the Simulink Support Package for Rust Code add-on.

Use the Simulink.RustImporter.Options class to specify options for importing Rust® code beyond what is specified in the Options property of the relevant Simulink.RustImporter object.

The Simulink.RustImporter.Options class is a handle class.

Creation

When you create an object of class Simulink.RustImporter, an object of class Simulink.RustImporter.Options is automatically created as the Options property of that object. Do not create an object of class Simulink.RustImporter.Options directly.

Properties

expand all

Automatic creation of test harness during import, specified as a logical 1 (true) or 0 (false). Specify whether the Rust Importer should automatically create a test harness for each block in the generated Simulink® library or model (Simulink Test™ license required).

Data Types: logical

Name by which the generated Simulink library appears in the Simulink Library Browser, specified as a character vector or string scalar. By default, the value is an empty string, meaning that the generated library does not appear in the Simulink Library Browser. If you specify a name, the Rust Importer generates the file slblocks.m as part of the artifacts the Rust Importer creates.

Example: "myLib"

Data Types: char | string

Version History

Introduced in R2026a