pub enum Policy {
Fixed,
Cap(usize),
Attention,
Learned,
}Expand description
The policy in force for a graded check (module doc).
Variants§
Fixed
BORG_SELECT=fixed whatever else is set: the fixed rule (module doc), the way back from the default.
Cap(usize)
BORG_STOP_ASK_CAP=N: a block asks only the first N 3s (conscience.rs ask_cap).
Attention
BORG_STOP_ATTENTION=on: attention.rs’s conformal cut on the model’s rank.
Learned
The default, no switch set: the learned policy (select/policy.rs), since P0–P4 passed under Rules v2.
Implementations§
Trait Implementations§
impl Copy for Policy
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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
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
Compare self to
key and return true if they are equal.