Remove the "BPlus" prefix from bforest::* types.

We'll just use the bforest:: namespace for these types, avoiding the
confusing mix of prefixed and non-prefixed names.

No functional change intended.
This commit is contained in:
Jakob Stoklund Olesen
2017-11-20 14:09:25 -08:00
parent d51a4c1065
commit d3778e56bb
5 changed files with 61 additions and 61 deletions

View File

@@ -22,8 +22,8 @@ mod path;
mod pool;
mod set;
pub use self::map::{MapForest, BPlusMap, MapCursor};
pub use self::set::{SetForest, BPlusSet, SetCursor};
pub use self::map::{MapForest, Map, MapCursor};
pub use self::set::{SetForest, Set, SetCursor};
use self::node::NodeData;
use self::path::Path;
@@ -42,7 +42,7 @@ const MAX_PATH: usize = 16;
///
/// Keys don't need to implement `Ord`. They are compared using a comparator object which
/// provides a context for comparison.
pub trait BPlusComparator<K>
pub trait Comparator<K>
where
K: Copy,
{
@@ -63,7 +63,7 @@ where
}
/// Trivial comparator that doesn't actually provide any context.
impl<K> BPlusComparator<K> for ()
impl<K> Comparator<K> for ()
where
K: Copy + Ord,
{
@@ -87,7 +87,7 @@ trait Forest {
type LeafValues: Copy + BorrowMut<[Self::Value]>;
/// Type used for key comparisons.
type Comparator: BPlusComparator<Self::Key>;
type Comparator: Comparator<Self::Key>;
/// Splat a single key into a whole array.
fn splat_key(key: Self::Key) -> Self::LeafKeys;