diff options
author | Nadrieril Feneanar | 2020-01-16 18:20:51 +0000 |
---|---|---|
committer | GitHub | 2020-01-16 18:20:51 +0000 |
commit | 001ba99abcd84a83fb6f63b86792af3569d6c68d (patch) | |
tree | 4e19a23be2205cc2a2267eada6aabf79b631c9df /dhall | |
parent | 20be0a856a8e317418b6674262baa05653f79832 (diff) | |
parent | bc12f1179143f20a54664ba8ce51d24834d2f1ff (diff) |
Merge pull request #125 from Nadrieril/improve-api
Improve API
Diffstat (limited to '')
-rw-r--r-- | dhall/src/syntax/ast/text.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dhall/src/syntax/ast/text.rs b/dhall/src/syntax/ast/text.rs index fb390ee..83aaf9a 100644 --- a/dhall/src/syntax/ast/text.rs +++ b/dhall/src/syntax/ast/text.rs @@ -97,6 +97,10 @@ impl<SubExpr> InterpolatedText<SubExpr> { &self.head } + pub fn tail(&self) -> &Vec<(SubExpr, String)> { + &self.tail + } + pub fn head_mut(&mut self) -> &mut String { &mut self.head } |