pub struct MatlabGenConfig {
pub suppress_output: bool,
pub emit_section_markers: bool,
pub octave_compat: bool,
pub indent: String,
pub emit_function_end: bool,
pub prefer_anon_functions: bool,
}Expand description
Configuration for the MATLAB code generator.
Fields§
§suppress_output: boolEmit statement suppression (;) by default.
emit_section_markers: boolEmit %% section markers.
octave_compat: boolTarget Octave compatibility (avoid newer MATLAB features).
indent: StringIndent string.
emit_function_end: boolWhether to emit function-end end keywords (MATLAB 2016b+).
prefer_anon_functions: boolWhether to use @(x) ... anonymous function syntax.
Implementations§
Source§impl MatlabGenConfig
impl MatlabGenConfig
Sourcepub fn matlab_r2022a() -> Self
pub fn matlab_r2022a() -> Self
Create a config for MATLAB R2022a and newer.
Trait Implementations§
Source§impl Clone for MatlabGenConfig
impl Clone for MatlabGenConfig
Source§fn clone(&self) -> MatlabGenConfig
fn clone(&self) -> MatlabGenConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatlabGenConfig
impl Debug for MatlabGenConfig
Auto Trait Implementations§
impl Freeze for MatlabGenConfig
impl RefUnwindSafe for MatlabGenConfig
impl Send for MatlabGenConfig
impl Sync for MatlabGenConfig
impl Unpin for MatlabGenConfig
impl UnsafeUnpin for MatlabGenConfig
impl UnwindSafe for MatlabGenConfig
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