Struct sirpent::state::RoundState
[−]
[src]
pub struct RoundState {
pub round_number: usize,
pub food: HashSet<Vector>,
pub eaten: HashMap<String, Vector>,
pub snakes: HashMap<String, Snake>,
pub directions: HashMap<String, Direction>,
pub casualties: HashMap<String, CauseOfDeath>,
}Fields
round_number: usize
food: HashSet<Vector>
eaten: HashMap<String, Vector>
snakes: HashMap<String, Snake>
directions: HashMap<String, Direction>
casualties: HashMap<String, CauseOfDeath>
Trait Implementations
impl Default for RoundState[src]
fn default() -> RoundState
Returns the "default value" for a type. Read more
impl Debug for RoundState[src]
impl Clone for RoundState[src]
fn clone(&self) -> RoundState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for RoundState[src]
fn eq(&self, __arg_0: &RoundState) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RoundState) -> bool
This method tests for !=.