]> git.proxmox.com Git - rustc.git/blame - library/std/src/sys/unsupported/args.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / library / std / src / sys / unsupported / args.rs
CommitLineData
532ac7d7 1use crate::ffi::OsString;
17df50a5 2use crate::fmt;
2c00a5a8 3
3dfed10e
XL
4pub struct Args {}
5
6pub fn args() -> Args {
7 Args {}
8}
2c00a5a8 9
cdc7bbd5
XL
10impl fmt::Debug for Args {
11 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
12 f.debug_list().finish()
2c00a5a8
XL
13 }
14}
15
16impl 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
26impl ExactSizeIterator for Args {
27 fn len(&self) -> usize {
28 0
29 }
30}
31
32impl DoubleEndedIterator for Args {
33 fn next_back(&mut self) -> Option<OsString> {
34 None
35 }
36}