diff --git a/src/fixed_map/mod.rs b/src/fixed_map/mod.rs index 5d64fb0..f189be8 100644 --- a/src/fixed_map/mod.rs +++ b/src/fixed_map/mod.rs @@ -17,17 +17,14 @@ use std::mem::MaybeUninit; use std::{mem, slice}; /// A fixed map with overflow which uses the default allocator as an overflow. -#[allow(private_interfaces)] pub type DefaultFixedMapWithOverflow = FixedMapWithOverflow; /// A fixed map without overflow. -#[allow(private_interfaces)] pub type FixedMap> = FixedMapImpl>, C>; /// A fixed map with overflow using the given overflow allocator. -#[allow(private_interfaces)] pub type FixedMapWithOverflow> = FixedMapImpl, OverflowAllocator>, C>; diff --git a/src/internal/rb_tree/node.rs b/src/internal/rb_tree/node.rs index dbf5e91..0f36fe1 100644 --- a/src/internal/rb_tree/node.rs +++ b/src/internal/rb_tree/node.rs @@ -4,7 +4,7 @@ use std::{fmt::Debug, marker::PhantomData, ptr}; /// The color of a red-black tree node #[repr(C)] #[derive(Debug, Eq, PartialEq)] -pub(crate) enum Color { +pub enum Color { Red = 0, Black = 1, } @@ -22,7 +22,7 @@ impl From for Color { /// A parent-color compressed pair. Combined, the /// pair takes `std::mem::size_of::()` bytes #[repr(C)] -pub(crate) struct ParentColor { +pub struct ParentColor { raw_ptr: usize, _ignore_key: PhantomData, _ignore_value: PhantomData, @@ -84,7 +84,7 @@ impl Default for ParentColor { #[repr(C)] #[derive(Debug)] -pub(crate) struct Node { +pub struct Node { pub right: *mut Node, pub left: *mut Node, pub parent: ParentColor,