Skip to main content

oxilean_codegen/lcnf/
costmodel_traits.rs

1//! # CostModel - Trait Implementations
2//!
3//! This module contains trait implementations for `CostModel`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Default`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::CostModel;
12
13impl Default for CostModel {
14    fn default() -> Self {
15        CostModel {
16            let_cost: 1,
17            app_cost: 3,
18            case_cost: 2,
19            return_cost: 0,
20            branch_penalty: 1,
21        }
22    }
23}