Skip to main content

CostModel

Trait CostModel 

Source
pub trait CostModel {
    // Required method
    fn cost(&self, enode: &IKun) -> Cost;

    // Provided method
    fn weights(&self) -> (f64, f64, f64) { ... }
}

Required Methods§

Source

fn cost(&self, enode: &IKun) -> Cost

Provided Methods§

Source

fn weights(&self) -> (f64, f64, f64)

获取该模型的默认权重

Trait Implementations§

Source§

impl CostModel for &dyn CostModel

Source§

fn cost(&self, enode: &IKun) -> Cost

Source§

fn weights(&self) -> (f64, f64, f64)

获取该模型的默认权重
Source§

impl CostModel for Box<dyn CostModel>

Source§

fn cost(&self, enode: &IKun) -> Cost

Source§

fn weights(&self) -> (f64, f64, f64)

获取该模型的默认权重

Implementations on Foreign Types§

Source§

impl CostModel for Box<dyn CostModel>

Source§

fn cost(&self, enode: &IKun) -> Cost

Source§

fn weights(&self) -> (f64, f64, f64)

Implementors§