pub struct MatlabFunction {
pub name: String,
pub inputs: Vec<MatlabParam>,
pub outputs: Vec<String>,
pub body: Vec<MatlabStmt>,
pub is_nested: bool,
pub is_local: bool,
pub help_text: Option<String>,
pub argument_validation: Vec<MatlabArgValidation>,
}Expand description
A MATLAB function definition.
Fields§
§name: StringFunction name
inputs: Vec<MatlabParam>Input parameter names
outputs: Vec<String>Output parameter names
body: Vec<MatlabStmt>Function body
is_nested: boolWhether this is a nested function
is_local: boolWhether this is a local function (appears after main function)
help_text: Option<String>Help text (first comment block)
argument_validation: Vec<MatlabArgValidation>Validation blocks (arguments … end)
Implementations§
Trait Implementations§
Source§impl Clone for MatlabFunction
impl Clone for MatlabFunction
Source§fn clone(&self) -> MatlabFunction
fn clone(&self) -> MatlabFunction
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 MatlabFunction
impl Debug for MatlabFunction
Source§impl PartialEq for MatlabFunction
impl PartialEq for MatlabFunction
impl StructuralPartialEq for MatlabFunction
Auto Trait Implementations§
impl Freeze for MatlabFunction
impl RefUnwindSafe for MatlabFunction
impl Send for MatlabFunction
impl Sync for MatlabFunction
impl Unpin for MatlabFunction
impl UnsafeUnpin for MatlabFunction
impl UnwindSafe for MatlabFunction
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