pub struct HiddenWake {
pub free_share: f64,
pub once_share: f64,
}Expand description
How a hidden law may be woken on this event, by whichever source offers the most (design §3.3: the largest available multiplier, never the sum).
Two numbers rather than one because the strongest source may be spent:
HL-04 Single Lesson offers 100% but only once per phase, and once its
latch is taken the law must fall back to whatever is still free rather than
stop waking. The caller claims the latch only when it actually uses
once_share.
Fields§
Largest share offered by a source with no per-phase limit.
Share offered by HL-04, or 0.0 when it is not offering one here.
Implementations§
Trait Implementations§
Source§impl Clone for HiddenWake
impl Clone for HiddenWake
Source§fn clone(&self) -> HiddenWake
fn clone(&self) -> HiddenWake
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HiddenWake
impl Debug for HiddenWake
Source§impl Default for HiddenWake
impl Default for HiddenWake
Source§fn default() -> HiddenWake
fn default() -> HiddenWake
Returns the “default value” for a type. Read more
Source§impl PartialEq for HiddenWake
impl PartialEq for HiddenWake
impl Copy for HiddenWake
impl StructuralPartialEq for HiddenWake
Auto Trait Implementations§
impl Freeze for HiddenWake
impl RefUnwindSafe for HiddenWake
impl Send for HiddenWake
impl Sync for HiddenWake
impl Unpin for HiddenWake
impl UnwindSafe for HiddenWake
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