Struct shakmaty_syzygy::Tablebases
[−]
[src]
pub struct Tablebases<S: Position + Clone + Syzygy> { /* fields omitted */ }
A collection of tables.
Methods
impl<S: Position + Clone + Syzygy> Tablebases<S>
[src]
pub fn new() -> Tablebases<S>
[src]
Create an empty collection of tables.
pub fn add_directory<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
[src]
Scan a directory for relevant tables.
Tables are selected by filename, e.g. KQvKP.rtbz
. The files are not
actually opened. This happens lazily when probing.
Errors
Returns an error result when:
- The
path
does not exist. path
is not a directory.- The process lacks permissions to list the directory.
pub fn probe_wdl(&self, pos: &S) -> Result<Wdl, SyzygyError>
[src]
pub fn probe_dtz(&self, pos: &S) -> Result<Dtz, SyzygyError>
[src]
Trait Implementations
impl<S: Debug + Position + Clone + Syzygy> Debug for Tablebases<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: Position + Clone + Syzygy> Default for Tablebases<S>
[src]
fn default() -> Tablebases<S>
[src]
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl<S> Send for Tablebases<S> where
S: Send,
S: Send,
impl<S> Sync for Tablebases<S> where
S: Sync,
S: Sync,