Skip to content

Commit 78fdfaf

Browse files
committed
use pub(crate) to hide things not part of public interface
1 parent 624d71b commit 78fdfaf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/join.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::{Relation, Variable};
44
use std::cell::Ref;
55
use std::ops::Deref;
66

7-
pub trait JoinInput<'me, Tuple: Ord>: Copy {
7+
pub(crate) trait JoinInput<'me, Tuple: Ord>: Copy {
88
type RecentTuples: Deref<Target = Relation<Tuple>>;
99
type StableTuples: Deref<Target = Vec<Relation<Tuple>>>;
1010

@@ -25,7 +25,7 @@ impl<'me, Tuple: Ord> JoinInput<'me, Tuple> for &'me Variable<Tuple> {
2525
}
2626
}
2727

28-
pub fn join_into<'me, Key: Ord, Val1: Ord, Val2: Ord, Result: Ord>(
28+
pub(crate) fn join_into<'me, Key: Ord, Val1: Ord, Val2: Ord, Result: Ord>(
2929
input1: impl JoinInput<'me, (Key, Val1)>,
3030
input2: impl JoinInput<'me, (Key, Val2)>,
3131
output: &Variable<Result>,
@@ -56,7 +56,7 @@ pub fn join_into<'me, Key: Ord, Val1: Ord, Val2: Ord, Result: Ord>(
5656
}
5757

5858
/// Moves all recent tuples from `input1` that are not present in `input2` into `output`.
59-
pub fn antijoin_into<Key: Ord, Val: Ord, Result: Ord>(
59+
pub(crate) fn antijoin_into<Key: Ord, Val: Ord, Result: Ord>(
6060
input1: &Variable<(Key, Val)>,
6161
input2: &Relation<Key>,
6262
output: &Variable<Result>,
@@ -114,7 +114,7 @@ fn join_helper<K: Ord, V1, V2>(
114114
}
115115
}
116116

117-
pub fn gallop<T>(mut slice: &[T], mut cmp: impl FnMut(&T) -> bool) -> &[T] {
117+
pub(crate) fn gallop<T>(mut slice: &[T], mut cmp: impl FnMut(&T) -> bool) -> &[T] {
118118
// if empty slice, or already >= element, return
119119
if !slice.is_empty() && cmp(&slice[0]) {
120120
let mut step = 1;

0 commit comments

Comments
 (0)