Skip to main content

Plan

Trait Plan 

Source
pub trait Plan: Sync {
    // Required methods
    fn count(&self) -> Option<usize>;
    fn changes(&self, i: usize, base: &System) -> Result<Vec<(Param, f64)>>;
}
Expand description

組の作り方: i 番目の組のパラメータの値

Required Methods§

Source

fn count(&self) -> Option<usize>

組の数(抽選なら None: 何番まででも作れる)

Source

fn changes(&self, i: usize, base: &System) -> Result<Vec<(Param, f64)>>

i 番目の組の変更(系 base の公称値を使う)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§