pub struct DummyPlanetState {
pub energy_cells: Vec<bool>,
pub charged_cells_count: usize,
pub has_rocket: bool,
}Expand description
This is a dummy struct containing an overview of the internal state of a planet.
Use PlanetState::to_dummy to construct one.
Fields§
§energy_cells: Vec<bool>§charged_cells_count: usize§has_rocket: boolTrait Implementations§
Source§impl Clone for DummyPlanetState
impl Clone for DummyPlanetState
Source§fn clone(&self) -> DummyPlanetState
fn clone(&self) -> DummyPlanetState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DummyPlanetState
impl RefUnwindSafe for DummyPlanetState
impl Send for DummyPlanetState
impl Sync for DummyPlanetState
impl Unpin for DummyPlanetState
impl UnwindSafe for DummyPlanetState
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