diff options
author | Nadrieril | 2020-03-18 18:58:51 +0000 |
---|---|---|
committer | Nadrieril | 2020-03-31 21:44:01 +0100 |
commit | 7848c8e8d3147ebe428290558aa6c0efcbf59ee5 (patch) | |
tree | be25355f0fabf6bc5f9b0568e224795058f069a6 /dhall/src/simple.rs | |
parent | 844dc3defdd7735742ad41eb6d1da8fe2e7f340b (diff) |
Brutally make all of dhall pub
Diffstat (limited to 'dhall/src/simple.rs')
-rw-r--r-- | dhall/src/simple.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dhall/src/simple.rs b/dhall/src/simple.rs index 45fa656..c00380c 100644 --- a/dhall/src/simple.rs +++ b/dhall/src/simple.rs @@ -38,12 +38,12 @@ pub enum STyKind { } impl SimpleValue { - pub(crate) fn new(kind: SValKind) -> Self { + pub fn new(kind: SValKind) -> Self { SimpleValue { kind: Box::new(kind), } } - pub(crate) fn from_nir(nir: &Nir) -> Option<Self> { + pub fn from_nir(nir: &Nir) -> Option<Self> { Some(SimpleValue::new(match nir.kind() { NirKind::Num(lit) => SValKind::Num(lit.clone()), NirKind::TextLit(x) => SValKind::Text( @@ -88,7 +88,7 @@ impl SimpleType { kind: Box::new(kind), } } - pub(crate) fn from_nir(nir: &Nir) -> Option<Self> { + pub fn from_nir(nir: &Nir) -> Option<Self> { Some(SimpleType::new(match nir.kind() { NirKind::BuiltinType(b) => match b { Builtin::Bool => STyKind::Bool, @@ -131,7 +131,7 @@ impl SimpleType { as_simple_ty: Some(self.clone()), } } - pub(crate) fn to_hir(&self) -> Hir { + pub fn to_hir(&self) -> Hir { let hir = |k| Hir::new(HirKind::Expr(k), Span::Artificial); hir(match self.kind() { STyKind::Bool => ExprKind::Builtin(Builtin::Bool), |