Struct hexe::zobrist::Zobrist [] [src]

#[repr(C)]
pub struct Zobrist { pub pieces: [[u64; 64]; 6], pub castle: [u64; 16], pub en_passant: [u64; 8], pub color: u64, }

Keys for Zobrist hashing.

Fields

Keys for each piece at each square.

Keys for each possible set of castle rights.

Keys for each en passant file.

Key for the playing color.

Methods

impl Zobrist
[src]

[src]

Returns the key for the piece role at a square.

[src]

Returns the key for the castle rights.

[src]

Returns the en passant key for the file.

[src]

Clear all hashes by setting them to zero.

[src]

Returns the zobrist keys as a contiguous slice.

[src]

Returns the zobrist keys as a contiguous mutable slice.

[src]

Returns the zobrist keys as a contiguous slice of bytes.

[src]

Returns the zobrist keys as a contiguous mutable slice of bytes.

Trait Implementations

impl Clone for Zobrist
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Zobrist
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Zobrist
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for Zobrist
[src]

[src]

Returns an instance with all keys zeroed out.

impl PartialEq for Zobrist
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Zobrist
[src]

impl AsRef<[u64]> for Zobrist
[src]

[src]

Performs the conversion.

impl AsMut<[u64]> for Zobrist
[src]

[src]

Performs the conversion.

impl AsRef<[u8]> for Zobrist
[src]

[src]

Performs the conversion.

impl AsMut<[u8]> for Zobrist
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Zobrist

impl Sync for Zobrist