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 { default() -> Self16 fn default() -> Self { 17 MatchedArg { 18 occurs: 1, 19 indices: Vec::new(), 20 vals: Vec::new(), 21 } 22 } 23 } 24 25 impl MatchedArg { new() -> Self26 pub fn new() -> Self { 27 MatchedArg::default() 28 } 29 } 30