]>
Commit | Line | Data |
---|---|---|
532ac7d7 | 1 | use crate::ffi::OsString; |
17df50a5 | 2 | use crate::fmt; |
2c00a5a8 | 3 | |
3dfed10e XL |
4 | pub struct Args {} |
5 | ||
6 | pub fn args() -> Args { | |
7 | Args {} | |
8 | } | |
2c00a5a8 | 9 | |
cdc7bbd5 XL |
10 | impl fmt::Debug for Args { |
11 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | |
12 | f.debug_list().finish() | |
2c00a5a8 XL |
13 | } |
14 | } | |
15 | ||
16 | impl Iterator for Args { | |
17 | type Item = OsString; | |
18 | fn next(&mut self) -> Option<OsString> { | |
19 | None | |
20 | } | |
21 | fn size_hint(&self) -> (usize, Option<usize>) { | |
22 | (0, Some(0)) | |
23 | } | |
24 | } | |
25 | ||
26 | impl ExactSizeIterator for Args { | |
27 | fn len(&self) -> usize { | |
28 | 0 | |
29 | } | |
30 | } | |
31 | ||
32 | impl DoubleEndedIterator for Args { | |
33 | fn next_back(&mut self) -> Option<OsString> { | |
34 | None | |
35 | } | |
36 | } |