arg_input 2.0.0

ARGF-style input handling for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;

pub static INPUTS: [&'static str; 5] = ["A", "B", "C", "D", "E"];
pub static NONEXISTENT: [&'static str; 3] = ["Z", "Y", "X"];

pub fn attach_input_dir<'a>(input_name: &'a str) -> PathBuf {
  let mut fullpath = PathBuf::new();

  fullpath.push(".");
  fullpath.push("tests");
  fullpath.push("inputs");
  fullpath.push(input_name);
  println!("{:?}", fullpath);

  fullpath
}