Macro sqrid::sqrid_create
source · macro_rules! sqrid_create { ($width: expr, $height: expr, $diags: expr) => { ... }; ($qatype: ty, $diags: expr) => { ... }; }
Expand description
Creates the a Sqrid type from the provided parameters: width,
height and diagonals
Example usage:
type Sqrid = sqrid::sqrid_create!(4, 4, false);
type Qa = sqrid::qa_create!(Sqrid);
for (qa, qr) in Sqrid::bf_iter(sqrid::qaqr_eval, &Qa::CENTER)
.flatten() {
println!("breadth-first qa {} from {}", qa, qr);
}