snailx 0.8.3

Zero-allocation, low-overhead access to program arguments (argv) with iterators over `&'static CStr`, `&'static str`, and `&'static OsStr`. Works in no_std (optional std feature) and targets Unix and macOS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(feature = "indexing_parser")]
/// A parser which indexes arguments, but requires allocation, and all related datatypes.
pub mod indexing;
#[cfg(feature = "non_indexing_parser")]
/// A parser which doesn't index arguments or allocate, but requires redundant work, and all related
/// datatypes.
pub mod non_indexing;

// pub trait Parser {
//     #[must_use]
//     fn positional(&self, idx: usize) -> Option<&'static str>;
//
//     #[must_use]
//     fn flag(&self, name: &'static str) -> bool;
//
//     #[must_use]
//     fn option(&self, name: &'static str) -> Option<OptValues>;
// }