ModeDetector
struct · ferroui-splat · v0.5.0
struct ModeDetector
Whether the code runs under a unit test runner, as the current detector tells, cached
(ModeDetector). The detector is a DefaultModeDetector until it is overridden.
Members
override_mode_detector
fn override_mode_detector(mode_detector: Rc<dyn IModeDetector>)
Replaces the detector and forgets the cached result (OverrideModeDetector).
in_unit_test_runner
fn in_unit_test_runner() -> bool
Whether the code runs under a unit test runner (InUnitTestRunner): the cached result, or
what the detector tells, false when it cannot tell.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>Any
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.