pub struct MatlabStats {
pub num_functions: usize,
pub num_classes: usize,
pub total_stmts: usize,
pub matrix_ops: usize,
}Expand description
Statistics about a generated MATLAB module.
Fields§
§num_functions: usizeNumber of functions.
num_classes: usizeNumber of classes.
total_stmts: usizeTotal number of statements.
matrix_ops: usizeNumber of matrix operations.
Implementations§
Source§impl MatlabStats
impl MatlabStats
Sourcepub fn from_module(module: &MatlabModuleBuilder) -> Self
pub fn from_module(module: &MatlabModuleBuilder) -> Self
Compute stats from a module builder.
Sourcepub fn merge(&mut self, other: &MatlabStats)
pub fn merge(&mut self, other: &MatlabStats)
Merge another stats record.
Trait Implementations§
Source§impl Clone for MatlabStats
impl Clone for MatlabStats
Source§fn clone(&self) -> MatlabStats
fn clone(&self) -> MatlabStats
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 MatlabStats
impl Debug for MatlabStats
Source§impl Default for MatlabStats
impl Default for MatlabStats
Source§fn default() -> MatlabStats
fn default() -> MatlabStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MatlabStats
impl RefUnwindSafe for MatlabStats
impl Send for MatlabStats
impl Sync for MatlabStats
impl Unpin for MatlabStats
impl UnsafeUnpin for MatlabStats
impl UnwindSafe for MatlabStats
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