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