aboutsummaryrefslogtreecommitdiff
path: root/example/src
diff options
context:
space:
mode:
authorTill Höppner2016-09-15 23:31:11 +0200
committerGitHub2016-09-15 23:31:11 +0200
commit7bcd1b7d827517cf8df0fdc86a698a171a32f736 (patch)
tree1f175d26bc73dc2f58492188e19bbdbaa3bc52f7 /example/src
parentb08684329bd0601550e3aa6f0926ce1e755668e8 (diff)
parentcae983f2cc93258c69e0f28e149d5da7802bb464 (diff)
downloadincludedir-7bcd1b7d827517cf8df0fdc86a698a171a32f736.tar.gz
includedir-7bcd1b7d827517cf8df0fdc86a698a171a32f736.tar.xz
includedir-7bcd1b7d827517cf8df0fdc86a698a171a32f736.zip
Merge pull request #1 from emk/file_names_iter
Allow iteration over available file names
Diffstat (limited to 'example/src')
-rw-r--r--example/src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/src/main.rs b/example/src/main.rs
index 9ca782c..e1a4931 100644
--- a/example/src/main.rs
+++ b/example/src/main.rs
@@ -4,7 +4,10 @@ extern crate phf;
include!(concat!(env!("OUT_DIR"), "/data.rs"));
fn main() {
- println!("{:?}", FILES.get("data/foo"))
+ println!("{:?}", FILES.get("data/foo"));
+ for name in FILES.file_names() {
+ println!("Found: {}", name);
+ }
// for (k, v) in FILES.entries() {
// println!("{}: {} bytes", k, v.len());
// }