From 3410ba518e9cd7adfbe02a934288b0e6aa6f3652 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 22 Jul 2022 18:41:09 +0200 Subject: [PATCH] Make 'Magic' fields 'pub(crate)' --- src/movegen/magic/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/movegen/magic/mod.rs b/src/movegen/magic/mod.rs index 43acd99..f9d01d1 100644 --- a/src/movegen/magic/mod.rs +++ b/src/movegen/magic/mod.rs @@ -3,13 +3,13 @@ use crate::board::Bitboard; /// A type representing the magic board indexing a given [crate::board::Square]. pub struct Magic { /// Magic number. - magic: u64, + pub(crate) magic: u64, /// Base offset into the magic square table. - offset: usize, + pub(crate) offset: usize, /// Mask to apply to the blocker board before applying the magic. - mask: Bitboard, + pub(crate) mask: Bitboard, /// Length of the resulting mask after applying the magic. - shift: u8, + pub(crate) shift: u8, } impl Magic {