pub struct Turn {
pub commands: usize,
pub broke: bool,
pub carried: usize,
pub maintained: u32,
}Expand description
What one turn of the loop did.
Fields§
§commands: usizeCommands executed.
broke: boolWhether a command ended the batch early.
carried: usizeCommands drained but not executed, waiting for the next turn.
maintained: u32Maintenance units spent.
Implementations§
Trait Implementations§
impl Copy for Turn
impl Eq for Turn
impl StructuralPartialEq for Turn
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turn
impl UnwindSafe for Turn
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