#[repr(C)]pub struct GameConfig {
pub width: i32,
pub rounds_count: u32,
pub players_count: u32,
pub initial_robots_count: u32,
pub start_energy: u32,
pub rng_seed: u32,
pub energy_stations_per_robot: u32,
pub energy_loss_to_clone_robot: u32,
pub max_robots_count: u32,
pub energy_collect_distance: i32,
}
Fields§
§width: i32
§rounds_count: u32
§players_count: u32
§initial_robots_count: u32
§start_energy: u32
§rng_seed: u32
§energy_stations_per_robot: u32
§energy_loss_to_clone_robot: u32
§max_robots_count: u32
§energy_collect_distance: i32
Trait Implementations§
Source§impl Clone for GameConfig
impl Clone for GameConfig
Source§fn clone(&self) -> GameConfig
fn clone(&self) -> GameConfig
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 GameConfig
impl RefUnwindSafe for GameConfig
impl Send for GameConfig
impl Sync for GameConfig
impl Unpin for GameConfig
impl UnwindSafe for GameConfig
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