std/sys/args/
unsupported.rs1use crate::ffi::OsString;
2use crate::fmt;
3
4pub struct Args {}
5
6pub fn args() -> Args {
7 Args {}
8}
9
10impl fmt::Debug for Args {
11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12 f.debug_list().finish()
13 }
14}
15
16impl Iterator for Args {
17 type Item = OsString;
18
19 #[inline]
20 fn next(&mut self) -> Option<OsString> {
21 None
22 }
23
24 #[inline]
25 fn size_hint(&self) -> (usize, Option<usize>) {
26 (0, Some(0))
27 }
28}
29
30impl DoubleEndedIterator for Args {
31 #[inline]
32 fn next_back(&mut self) -> Option<OsString> {
33 None
34 }
35}
36
37impl ExactSizeIterator for Args {
38 #[inline]
39 fn len(&self) -> usize {
40 0
41 }
42}