]> git.proxmox.com Git - rustc.git/blob - vendor/clap-2.34.0/src/args/matched_arg.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / clap-2.34.0 / src / args / matched_arg.rs
1 // Std
2 use std::ffi::OsString;
3
4 #[doc(hidden)]
5 #[derive(Debug, Clone)]
6 pub struct MatchedArg {
7 #[doc(hidden)]
8 pub occurs: u64,
9 #[doc(hidden)]
10 pub indices: Vec<usize>,
11 #[doc(hidden)]
12 pub vals: Vec<OsString>,
13 }
14
15 impl Default for MatchedArg {
16 fn default() -> Self {
17 MatchedArg {
18 occurs: 1,
19 indices: Vec::new(),
20 vals: Vec::new(),
21 }
22 }
23 }
24
25 impl MatchedArg {
26 pub fn new() -> Self {
27 MatchedArg::default()
28 }
29 }