We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf6d50 commit 96282e1Copy full SHA for 96282e1
src/libstd/io/error.rs
@@ -212,6 +212,12 @@ impl ErrorKind {
212
/// the heap (for normal construction via Error::new) is too costly.
213
#[stable(feature = "io_error_from_errorkind", since = "1.14.0")]
214
impl From<ErrorKind> for Error {
215
+ /// Converts a [`ErrorKind`] into a [`Error`].
216
+ ///
217
+ /// This conversion allocates a new error with simple repr.
218
219
+ /// [`ErrorKind`]: enum.ErrorKind.html
220
+ /// [`Error`]: struct.Error.html
221
#[inline]
222
fn from(kind: ErrorKind) -> Error {
223
Error {
0 commit comments