Skip to main content

set_level

Function set_level 

Source
pub fn set_level(l: Level) -> Level
Expand description

Dispatch to l from here on, clamped to what the machine can run. Returns the level that took effect.

This is the same knob LIBJAY_CPU_LEVEL turns, for a caller that wants to turn it more than once — a test comparing the levels against each other, or a benchmark. Values already computed are not affected.