Struct tictactoe_rust::game::Config

source ·
pub struct Config {
    pub mode: Mode,
    pub players: (Player, Player),
    pub first: Players,
    pub empty_piece: String,
    pub ai_smartness: SmartLevel,
}

Fields§

§mode: Mode§players: (Player, Player)§first: Players§empty_piece: String§ai_smartness: SmartLevel

Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.