devela/sys/io/
reexport_std.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// devela::sys::io::reexport_std
//
//! Reexported items from `std`.
//

use crate::code::reexport;

/* io traits */

reexport! { rust: not(std)|std::io,
    doc: "A type of `Read`er which has an internal buffer.",
    @BufRead as IoBufRead
}
reexport! { rust: not(std)|std::io,
    doc: "Allows for reading bytes from a source.",
    @Read as IoRead
}
reexport! { rust: not(std)|std::io,
    doc: "Provides a cursor which can be moved within a stream of bytes.",
    @Seek as IoSeek
}
reexport! { rust: not(std)|std::io,
    doc: "A trait for objects which are byte-oriented sinks.",
    @Write as IoWrite
}

/* io structs */

reexport! { rust: not(std)|std::io,
    doc: "Adds buffering to any reader.",
    @BufReader as IoBufReader
}
reexport! { rust: not(std)|std::io,
    doc: "Wraps a writer and buffers its output.",
    @BufWriter as IoBufWriter
}
reexport! { rust: not(std)|std::io,
    doc: "An iterator over `u8` values of a reader.",
    @Bytes as IoBytes
}
reexport! { rust: not(std)|std::io,
    doc: "Adapter to chain together two readers.",
    @Chain as IoChain
}
reexport! { rust: not(std)|std::io,
    doc: "Wraps an in-memory buffer and provides it with a [`IoSeek`] implementation.",
    @Cursor as IoCursor
}
reexport! { rust: not(std)|std::io,
    tag: crate::TAG_ERROR_COMPOSITE!(),
    doc: "Error type for I/O operations of [`IoRead`], [`IoWrite`], [`IoSeek`],
    and associated traits.",
    @Error as IoError
}
// @IntoInnerError as IoIntoInnerError
reexport! { rust: std::io,
    doc: "A buffer type used with `IoWrite::write_vectored`.",
    IoSlice
}
reexport! { rust: std::io,
    doc: "A buffer type used with `IoRead::read_vectored`.",
    IoSliceMut
}
reexport! { rust: not(std)|std::io,
    doc: "Like `BufWriter`, but flushing whenever a newline (`0x0a`, `'\n'`) is detected.",
    @LineWriter as IoLineWriter
}
reexport! { rust: std::io,
    doc: "An iterator over the lines of an instance of [`IoBufRead`].",
    @Lines as IoLines
}
// @Repeat as IoRepeat
reexport! { rust: not(std)|std::io,
    tag: crate::TAG_RESULT!(),
    doc: "A specialized [`Result`] type for I/O operations.",
    @Result as IoResult
}
reexport! { rust: std::io,
    doc: "A writer which will move data into the void.",
    @Sink as IoSink
}
reexport! { rust: std::io,
    doc: "An iterator over the contents of an instance of BufRead split on a particular byte.",
    @Split as IoSplit
}
// ...Std...
reexport! { rust: not(std)|std::io,
    doc: "Reader adapter which limits the bytes read from an underlying reader.",
    @Take as IoTake
}
// @WriterPanicked as IoWriterPanicked

/* io enums */

reexport! { rust: not(std)|std::io,
    tag: crate::TAG_ERROR_COMPOSITE!(),
    doc: "A list specifying general categories of I/O error.",
    @ErrorKind as IoErrorKind
}
// @SeekFrom as IoSeekFrom

/* io functions */

reexport! { rust: not(std)|std::io,
    doc: "Copies the entire contents of a reader into a writer.",
    @copy as io_copy
}
reexport! { rust: std::io,
    doc: "Creates a value that is always at EOF for reads, and ignores all data written.",
    @empty as io_empty
}
reexport! { rust: std::io,
    doc: "Read all bytes from a reader into a new String",
    @read_to_string as io_read_to_string
}
reexport! { rust: std::io,
    doc: "Creates an instance of a reader that infinitely repeats one byte.",
    @repeat as io_repeat
}
reexport! { rust: std::io,
    doc: "Creates an instance of a writer which will successfully consume all data.",
    @sink as io_sink
}
reexport! { rust: std::io,
    doc: "Constructs a new handle to the standard error of the current process.",
    @stderr as io_stderr
}
reexport! { rust: std::io,
    doc: "Constructs a new handle to the standard input of the current process.",
    @stdin as io_stdin
}
reexport! { rust: std::io,
    doc: "Constructs a new handle to the standard output of the current process.",
    @stdout as io_stdout
}