get rid of some useless pub(crate) syntax
This commit is contained in:
parent
938bed05fc
commit
a6f893e448
|
@ -16,7 +16,7 @@ use crate::bot::node::{Node, RawNodePtr};
|
||||||
use crate::bot::trans::TransTable;
|
use crate::bot::trans::TransTable;
|
||||||
use crate::eval::{features, Features, Weights};
|
use crate::eval::{features, Features, Weights};
|
||||||
|
|
||||||
pub(crate) use bumpalo::Bump as Arena;
|
use bumpalo::Bump as Arena;
|
||||||
|
|
||||||
/// Encompasses an instance of the algorithm.
|
/// Encompasses an instance of the algorithm.
|
||||||
pub struct Bot {
|
pub struct Bot {
|
||||||
|
|
|
@ -11,7 +11,7 @@ use crate::find::find_locations;
|
||||||
|
|
||||||
/// Represents a node in the search tree. A node basically just consists of a board state
|
/// Represents a node in the search tree. A node basically just consists of a board state
|
||||||
/// (incl. queue) and some extra metadata relating it to previous nodes in the tree.
|
/// (incl. queue) and some extra metadata relating it to previous nodes in the tree.
|
||||||
pub(crate) struct Node {
|
pub struct Node {
|
||||||
matrix: *const Mat,
|
matrix: *const Mat,
|
||||||
queue: RawQueue,
|
queue: RawQueue,
|
||||||
edge: Option<Edge>,
|
edge: Option<Edge>,
|
||||||
|
@ -176,7 +176,7 @@ impl Edge {
|
||||||
/// Wraps a raw pointer to a `Node`, requiring you to manage the lifetime yourself.
|
/// Wraps a raw pointer to a `Node`, requiring you to manage the lifetime yourself.
|
||||||
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
|
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
|
||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub(crate) struct RawNodePtr(*const Node);
|
pub struct RawNodePtr(*const Node);
|
||||||
|
|
||||||
impl RawNodePtr {
|
impl RawNodePtr {
|
||||||
pub unsafe fn as_node<'a>(self) -> &'a Node {
|
pub unsafe fn as_node<'a>(self) -> &'a Node {
|
||||||
|
|
|
@ -8,7 +8,7 @@ use mino::Mat;
|
||||||
use crate::bot::node::{Node, RawNodePtr};
|
use crate::bot::node::{Node, RawNodePtr};
|
||||||
use crate::HashMap;
|
use crate::HashMap;
|
||||||
|
|
||||||
pub(crate) struct TransTable {
|
pub struct TransTable {
|
||||||
lookup: HashMap<QueueKey, HashMap<RawMatPtr, RawNodePtr>>,
|
lookup: HashMap<QueueKey, HashMap<RawMatPtr, RawNodePtr>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue