pub struct ScoreContext {
pub held_last_frame: bool,
pub failure_hits: u32,
}Expand description
Everything score_pair needs that is not the plane or the layer.
Fields§
§held_last_frame: boolWhether the layer held this plane last frame.
failure_hits: u32How many times this (plane, property_hash) pair has failed a test
commit. Subtracted from the score.
Trait Implementations§
Source§impl Clone for ScoreContext
impl Clone for ScoreContext
impl Copy for ScoreContext
Source§impl Debug for ScoreContext
impl Debug for ScoreContext
Auto Trait Implementations§
impl Freeze for ScoreContext
impl RefUnwindSafe for ScoreContext
impl Send for ScoreContext
impl Sync for ScoreContext
impl Unpin for ScoreContext
impl UnsafeUnpin for ScoreContext
impl UnwindSafe for ScoreContext
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