1// devela::sys::io::reexport_std
2//
3//! Reexported items from `std`.
4//
56use crate::reexport;
78/* io traits */
910reexport! { rust: not(std)|std::io,
11 doc: "A type of `Read`er which has an internal buffer.",
12 @BufRead as IoBufRead
13}
14reexport! { rust: not(std)|std::io,
15 doc: "Allows for reading bytes from a source.",
16 @Read as IoRead
17}
18reexport! { rust: not(std)|std::io,
19 doc: "Provides a cursor which can be moved within a stream of bytes.",
20 @Seek as IoSeek
21}
22reexport! { rust: not(std)|std::io,
23 doc: "A trait for objects which are byte-oriented sinks.",
24 @Write as IoWrite
25}
2627/* io structs */
2829reexport! { rust: not(std)|std::io,
30 doc: "Adds buffering to any reader.",
31 @BufReader as IoBufReader
32}
33reexport! { rust: not(std)|std::io,
34 doc: "Wraps a writer and buffers its output.",
35 @BufWriter as IoBufWriter
36}
37reexport! { rust: not(std)|std::io,
38 doc: "An iterator over `u8` values of a reader.",
39 @Bytes as IoBytes
40}
41reexport! { rust: not(std)|std::io,
42 doc: "Adapter to chain together two readers.",
43 @Chain as IoChain
44}
45reexport! { rust: not(std)|std::io,
46 doc: "Wraps an in-memory buffer and provides it with an [`IoSeek`] implementation.",
47 @Cursor as IoCursor
48}
49reexport! { rust: std::io,
50 doc: "Ignores any data written via [`IoWrite`], and read via [`IoRead`].",
51 @Empty as IoEmpty
52}
53reexport! { rust: not(std)|std::io,
54 tag: crate::TAG_ERROR_COMPOSITE!(),
55 doc: "Error type for [`IoRead`], [`IoWrite`], [`IoSeek`] operations.",
56 @Error as IoError
57}
58// @IntoInnerError as IoIntoInnerError
59reexport! { rust: std::io,
60 doc: "A buffer type used with `IoWrite::write_vectored`.",
61 IoSlice
62}
63reexport! { rust: std::io,
64 doc: "A buffer type used with `IoRead::read_vectored`.",
65 IoSliceMut
66}
67reexport! { rust: not(std)|std::io,
68 doc: "Like `BufWriter`, but flushing whenever a newline (`0x0a`, `'\n'`) is detected.",
69 @LineWriter as IoLineWriter
70}
71reexport! { rust: std::io,
72 doc: "An iterator over the lines of an instance of [`IoBufRead`].",
73 @Lines as IoLines
74}
75reexport! { rust: std::io,
76 doc: "A reader which yields one byte over and over and over and over and over and…",
77 @Repeat as IoRepeat
78}
79reexport! { rust: not(std)|std::io,
80 tag: crate::TAG_RESULT!(),
81 doc: "A specialized [`Result`] type for I/O operations.",
82 @Resultas IoResult
83}
84reexport! { rust: std::io,
85 doc: "A writer which will move data into the void.",
86 @Sink as IoSink
87}
88reexport! { rust: std::io,
89 doc: "An iterator over the contents of an instance of BufRead split on a particular byte.",
90 @Split as IoSplit
91}
92reexport! { rust: std::io,
93 doc: "A handle to the standard error stream of a process.",
94 Stderr
95}
96reexport! { rust: std::io,
97 doc: "A locked reference to the [`Stderr`] handle.",
98 StderrLock
99}
100reexport! { rust: std::io,
101 doc: "A handle to the standard input stream of a process.",
102 Stdin
103}
104reexport! { rust: std::io,
105 doc: "A locked reference to the [`Stdin`] handle.",
106 StdinLock
107}
108reexport! { rust: std::io,
109 doc: "A handle to the global standard output stream of the current process.",
110 Stdout
111}
112reexport! { rust: std::io,
113 doc: "A locked reference to the [`Stdout`] handle.",
114 StdoutLock
115}
116reexport! { rust: not(std)|std::io,
117 doc: "Reader adapter which limits the bytes read from an underlying reader.",
118 @Take as IoTake
119}
120// @WriterPanicked as IoWriterPanicked
121122/* io enums */
123124reexport! { rust: not(std)|std::io,
125 tag: crate::TAG_ERROR_COMPOSITE!(),
126 doc: "A list specifying general categories of I/O error.",
127 @ErrorKind as IoErrorKind
128}
129// @SeekFrom as IoSeekFrom