Struct otter_api_tests::shapelib::GameState[][src]

pub struct GameState {
    pub table_colour: Html,
    pub table_size: PosC<i32>,
    pub pieces: GPieces,
    pub gen: Generation,
    pub log: VecDeque<(Generation, Arc<CommittedLogEntry>)>,
    pub max_z: ZLevel,
    pub players: DenseSlotMap<PlayerId, GPlayer>,
    pub occults: GameOccults,
}

Fields

table_colour: Htmltable_size: PosC<i32>pieces: GPiecesgen: Generationlog: VecDeque<(Generation, Arc<CommittedLogEntry>)>max_z: ZLevelplayers: DenseSlotMap<PlayerId, GPlayer>occults: GameOccults

Implementations

impl GameState[src]

pub fn dummy() -> GameState[src]

impl GameState[src]

pub fn want_expire_some_logs(&self, cutoff: Timestamp) -> bool[src]

pub fn do_expire_old_logs(&mut self, cutoff: Timestamp)[src]

Trait Implementations

impl Debug for GameState[src]

impl<'de> Deserialize<'de> for GameState[src]

impl Serialize for GameState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<A> DynCastExt for A

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,