Skip to content

Commit

Permalink
Hide a few methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Oct 11, 2024
1 parent 4cfea64 commit 44ac7ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaq-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub enum Bind<V = (), F = V> {

impl<V, F> Bind<V, F> {
/// Move references inward.
pub fn as_ref(&self) -> Bind<&V, &F> {
pub(crate) fn as_ref(&self) -> Bind<&V, &F> {
match self {
Self::Var(x) => Bind::Var(x),
Self::Fun(x) => Bind::Fun(x),
Expand All @@ -116,7 +116,7 @@ impl<V, F> Bind<V, F> {

impl<T> Bind<T, T> {
/// Apply a function to both binding types.
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> Bind<U, U> {
pub(crate) fn map<U>(self, f: impl FnOnce(T) -> U) -> Bind<U, U> {
match self {
Self::Var(x) => Bind::Var(f(x)),
Self::Fun(x) => Bind::Fun(f(x)),
Expand Down

0 comments on commit 44ac7ec

Please sign in to comment.