Skip to main content

with_progress

Function with_progress 

Source
pub fn with_progress<R>(p: Option<ProgressFn>, f: impl FnOnce() -> R) -> R
Expand description

f を進み具合の受け手 p の下で回す(文脈のほかの項目は引き継ぐ)。この中の report は p を呼ぶ。 最適化(Event::Iter)・公差・runs・差し替え探索(Event::Count)が知らせる。中断は with_cancel の印で頼む