pub struct OptimizationReport {Show 13 fields
pub nodes_before: usize,
pub nodes_after: usize,
pub connections_before: usize,
pub connections_after: usize,
pub dead_nodes_removed: usize,
pub algebraic_simplifications: usize,
pub redundant_casts_removed: usize,
pub nodes_merged: usize,
pub cycle_detected: bool,
pub estimated_instructions: u32,
pub over_budget: bool,
pub inferred_types: HashMap<(u64, usize), DataType>,
pub warnings: Vec<String>,
}Expand description
Report generated after optimization, containing statistics.
Fields§
§nodes_before: usizeNumber of nodes before optimization.
nodes_after: usizeNumber of nodes after optimization.
connections_before: usizeNumber of connections before.
connections_after: usizeNumber of connections after.
dead_nodes_removed: usizeNumber of nodes removed by dead code elimination.
algebraic_simplifications: usizeNumber of algebraic simplifications applied.
redundant_casts_removed: usizeNumber of redundant casts removed.
nodes_merged: usizeNumber of nodes merged.
cycle_detected: boolWhether a cycle was detected.
estimated_instructions: u32Estimated total instruction count.
over_budget: boolWhether the instruction budget was exceeded.
inferred_types: HashMap<(u64, usize), DataType>Inferred types for each node output: (node_id, socket_idx) -> DataType.
warnings: Vec<String>Warnings generated during optimization.
Trait Implementations§
Source§impl Clone for OptimizationReport
impl Clone for OptimizationReport
Source§fn clone(&self) -> OptimizationReport
fn clone(&self) -> OptimizationReport
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 moreAuto Trait Implementations§
impl Freeze for OptimizationReport
impl RefUnwindSafe for OptimizationReport
impl Send for OptimizationReport
impl Sync for OptimizationReport
impl Unpin for OptimizationReport
impl UnsafeUnpin for OptimizationReport
impl UnwindSafe for OptimizationReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.