pub struct FValue<T> { /* private fields */ }Implementations§
Source§impl<T: FValueOverridable> FValue<T>
impl<T: FValueOverridable> FValue<T>
Sourcepub fn push_test_override(&self, value: T)
pub fn push_test_override(&self, value: T)
Install a thread-local override for this flag (used by the test scope
guard ScopedFValue). Visible only to the current thread until popped.
Sourcepub fn pop_test_override(&self)
pub fn pop_test_override(&self)
Remove the most recent thread-local override for this flag.
Source§impl<T: FValueList> FValue<T>
impl<T: FValueList> FValue<T>
Source§impl<T: FValueList + Copy + 'static> FValue<T>
impl<T: FValueList + Copy + 'static> FValue<T>
Sourcepub fn set_value_by_name(name: &str, value: T)
pub fn set_value_by_name(name: &str, value: T)
Walk the per-type FValue<T>::list and set every flag whose name
matches to value (the C++ test harness setFastValue<T>(name, value)
in tests/main.cpp). Configured at startup before worker threads — the
same single-threaded contract as flag construction.
Sourcepub fn set_all_unless(value: T, skip: impl Fn(&str) -> bool)
pub fn set_all_unless(value: T, skip: impl Fn(&str) -> bool)
Walk the per-type FValue<T>::list and set every flag to value unless
the host-supplied skip predicate (matched on the flag’s UTF-8 name)
returns true. Models the bool --fflags=true|false branch of the C++
test harness setFastFlags, which sets every non-skipped flag. Startup-
only, single-threaded — the same contract as flag construction.