pub struct GateSettings {
pub threshold: f64,
pub lift: Option<f64>,
}Expand description
How the Truth Gate combines its rules with an engine’s answer.
Fields§
§threshold: f64The engine adds a block when p >= threshold.
lift: Option<f64>Opt-in (HIKMAH_HOOK_ENGINE_LIFT): an admitted engine answer with p < lift lifts a rules
block. None, the default, keeps the rules a hard floor. It never lifts an engine block, so
a value at or above threshold acts like threshold. No measurement backs any value yet.
Trait Implementations§
Source§impl Clone for GateSettings
impl Clone for GateSettings
impl Copy for GateSettings
Source§impl Debug for GateSettings
impl Debug for GateSettings
Source§impl From<f64> for GateSettings
impl From<f64> for GateSettings
Source§impl PartialEq for GateSettings
impl PartialEq for GateSettings
impl StructuralPartialEq for GateSettings
Auto Trait Implementations§
impl Freeze for GateSettings
impl RefUnwindSafe for GateSettings
impl Send for GateSettings
impl Sync for GateSettings
impl Unpin for GateSettings
impl UnsafeUnpin for GateSettings
impl UnwindSafe for GateSettings
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