pub enum LogLevel {
None,
Summ,
Minimal,
}Expand description
Per-step log verbosity for the race engine.
Variants§
None
Silent per step: only the run start line and final stop reason print —
fastest I/O path for users who parse engine.json.
Summ
One compact line per step: pop size, loss range+mean, fitness range+mean, plus a short evolve note on the same line when crossover/mutation fires.
Minimal
A boxed table per step (from step 2): rollup stats with deltas, evolve counters, and the current best net. No per-net detail, no separate rollup line.
Implementations§
Source§impl LogLevel
impl LogLevel
Sourcepub fn parse(name: &str) -> Option<Self>
pub fn parse(name: &str) -> Option<Self>
Parse the engine’s own level name (none/summ/minimal, case-insensitive) —
the vocabulary of the examples’ --log-level flag.
Sourcepub fn parse_verbose(raw: &str) -> Option<(Self, Option<&'static str>)>
pub fn parse_verbose(raw: &str) -> Option<(Self, Option<&'static str>)>
Parse a CLI log level into the pair logging::init takes: the engine’s reporting
SHAPE plus an optional tracing verbosity (--log-level debug keeps Summ’s detail).
Sourcepub fn env_filter(self) -> &'static str
pub fn env_filter(self) -> &'static str
The tracing verbosity the console layer is built with: Summ prints the engine’s info!
lines; Minimal/None mute them (warn) — the framed vitals table rides its own target,
Trait Implementations§
impl Copy for LogLevel
impl Eq for LogLevel
impl StructuralPartialEq for LogLevel
Auto Trait Implementations§
impl Forget for LogLevel
impl Freeze for LogLevel
impl Move for LogLevel
impl RefUnwindSafe for LogLevel
impl Send for LogLevel
impl Sync for LogLevel
impl Unpin for LogLevel
impl UnsafeUnpin for LogLevel
impl UnwindSafe for LogLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.