pub struct GaugeBar {
pub subject: GaugeBarSubject,
pub at_least: bool,
pub threshold: String,
pub span: SourceSpan,
}Expand description
An optional bar: the default decision bar for settle/campaign gates.
expect P(<field>) at least 0.9 (chance-shaped) or
expect p10 at least 0.7 / expect mean at most 800 (stat-shaped).
Thresholds keep their exact source text (Eq-safe, format-exact);
consumers parse.
Fields§
§subject: GaugeBarSubject§at_least: booltrue = at least, false = at most.
threshold: String§span: SourceSpanTrait Implementations§
impl Eq for GaugeBar
impl StructuralPartialEq for GaugeBar
Auto Trait Implementations§
impl Freeze for GaugeBar
impl RefUnwindSafe for GaugeBar
impl Send for GaugeBar
impl Sync for GaugeBar
impl Unpin for GaugeBar
impl UnsafeUnpin for GaugeBar
impl UnwindSafe for GaugeBar
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
Mutably borrows from an owned value. Read more