xref: /drstd/src/std/sys/unsupported/args.rs (revision 86982c5e9b2eaa583327251616ee822c36288824)
1 use crate::std::ffi::OsString;
2 use crate::std::fmt;
3 
4 pub struct Args {}
5 
6 pub fn args() -> Args {
7     Args {}
8 }
9 
10 impl fmt::Debug for Args {
11     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12         f.debug_list().finish()
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 }
37