Struct usiagent::hash::KyokumenMap[][src]

pub struct KyokumenMap<K, T> where
    K: Eq + Hash + Clone,
    T: Clone
{ /* fields omitted */ }
Expand description

先手と後手の局面をTwoKeyHashMapを使って管理する

Implementations

KyokumenMapの生成

指定された手番の主キーとサブキーに一致する項目の変更不能な参照を取得

Arguments
  • teban - 手番
  • k - 主キー
  • sk - サブキー

指定された手番の主キーとサブキーに一致する項目の変更可能な参照を取得

Arguments
  • teban - 手番
  • k - 主キー
  • sk - サブキー

手番と主キーとサブキーを指定して項目を挿入する

Arguments
  • teban - 手番
  • k - 主キー
  • sk - サブキー
  • nv - キーに対応する新しい項目(対応するキーがある場合は上書き、ない場合は追加される)

手番を指定してマップをクリア

Arguments
  • teban - 手番

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.