https://doc.rust-lang.org/std/convert/trait.From.html

From in std::convert - Rust

1.17.0 · Source§

1.21.0 · Source§

1.0.0 · Source§

1.21.0 · Source§

1.0.0 · Source§

1.17.0 · Source§

1.7.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.17.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.17.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.35.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.44.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

Source§

Source§

Source§

Source§

Source§

Source§

1.45.0 · Source§

1.45.0 · Source§

1.45.0 · Source§

1.45.0 · Source§

Source§

1.89.0 · Source§

1.14.0 · Source§

Intended for use for errors not exposed to the user, where allocating onto the heap (for normal construction via Error::new) is too costly.

1.36.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.68.0 (const: unstable) · Source§

1.68.0 (const: unstable) · Source§

1.68.0 (const: unstable) · Source§

1.68.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.28.0 (const: unstable) · Source§

1.24.0 (const: unstable) · Source§

1.13.0 (const: unstable) · Source§

1.51.0 (const: unstable) · Source§

1.51.0 (const: unstable) · Source§

1.46.0 · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.23.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

Source§

1.13.0 (const: unstable) · Source§

Maps a byte in 0x00..=0xFF to a char whose code point has the same value, in U+0000..=U+00FF.

Unicode is designed such that this effectively decodes bytes with the character encoding that IANA calls ISO-8859-1. This encoding is compatible with ASCII.

Note that this is different from ISO/IEC 8859-1 a.k.a. ISO 8859-1 (with one less hyphen), which leaves some “blanks”, byte values that are not assigned to any character. ISO-8859-1 (the IANA one) assigns them to the C0 and C1 control codes.

Note that this is also different from Windows-1252 a.k.a. code page 1252, which is a superset ISO/IEC 8859-1 that assigns some (not all!) blanks to punctuation and various Latin characters.

To confuse things further, on the Web ascii, iso-8859-1, and windows-1252 are all aliases for a superset of Windows-1252 that fills the remaining blanks with corresponding C0 and C1 control codes.

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.61.0 · Source§

1.34.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.6.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.5.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.1.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.34.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.23.0 (const: unstable) · Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

1.18.0 · Source§

Source§

1.18.0 · Source§

1.18.0 · Source§

1.18.0 · Source§

Source§

Source§

1.78.0 · Source§

1.20.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.7.0 · Source§

1.0.0 · Source§

1.20.0 · Source§

1.0.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on Windows only.

1.20.0 · Source§

1.87.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.87.0 · Source§

Available on Windows only.

1.87.0 · Source§

1.87.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.87.0 · Source§

Available on Windows only.

1.87.0 · Source§

1.74.0 · Source§

1.74.0 · Source§

1.16.0 (const: unstable) · Source§

1.1.0 (const: unstable) · Source§

1.16.0 (const: unstable) · Source§

1.26.0 (const: unstable) · Source§

1.16.0 (const: unstable) · Source§

1.16.0 (const: unstable) · Source§

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on Windows only.

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on Windows only.

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on Windows only.

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.41.0 (const: unstable) · Source§

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.87.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.87.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

1.63.0 · Source§

Available on (Unix or HermitCore or target_os=trusty or WASI or target_os=motor) and non-target_os=trusty only.

Source§

Available on Linux only.

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Unix only.

1.74.0 · Source§

Available on Unix only.

Creates a ChildStderr from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.74.0 · Source§

Available on Unix only.

Creates a ChildStdin from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.74.0 · Source§

Available on Unix only.

Creates a ChildStdout from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.63.0 · Source§

Available on Unix only.

Source§

Available on Linux only.

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Windows only.

1.87.0 · Source§

Available on Windows only.

1.87.0 · Source§

Available on Windows only.

1.74.0 · Source§

Available on Windows only.

Creates a ChildStderr from the provided OwnedHandle.

The provided handle must be asynchronous, as reading and writing from and to it is implemented using asynchronous APIs.

1.74.0 · Source§

Available on Windows only.

Creates a ChildStdin from the provided OwnedHandle.

The provided handle must be asynchronous, as reading and writing from and to it is implemented using asynchronous APIs.

1.74.0 · Source§

Available on Windows only.

Creates a ChildStdout from the provided OwnedHandle.

The provided handle must be asynchronous, as reading and writing from and to it is implemented using asynchronous APIs.

1.63.0 · Source§

Available on Windows only.

1.63.0 · Source§

Available on Windows only.

1.63.0 · Source§

Available on Windows only.

1.63.0 · Source§

Available on Windows only.

1.20.0 · Source§

1.14.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.63.0 · Source§

Available on Windows only.

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Windows only.

1.20.0 · Source§

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Windows only.

1.20.0 · Source§

1.63.0 · Source§

Available on Unix only.

1.63.0 · Source§

Available on Windows only.

1.20.0 · Source§

Source§

Source§

Source§

1.62.0 · Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

1.20.0 · Source§

1.0.0 · Source§

1.0.0 · Source§

1.21.0 · Source§

1.21.0 · Source§

1.14.0 · Source§

1.24.0 · Source§

1.24.0 · Source§

1.62.0 · Source§

Source§

Source§

1.43.0 · Source§

1.17.0 (const: unstable) · Source§

1.9.0 (const: unstable) · Source§

1.17.0 (const: unstable) · Source§

1.9.0 (const: unstable) · Source§

1.17.0 (const: unstable) · Source§

1.16.0 (const: unstable) · Source§

1.0.0 · Source§

Source§

Source§

Source§

1.28.0 · Source§

1.28.0 · Source§

1.28.0 · Source§

1.28.0 · Source§

1.6.0 · Source§

1.28.0 · Source§

1.28.0 · Source§

1.6.0 · Source§

1.0.0 · Source§

1.14.0 · Source§

1.28.0 · Source§

1.28.0 · Source§

1.28.0 · Source§

Source§

1.28.0 · Source§

1.28.0 · Source§

1.6.0 · Source§

1.0.0 · Source§

1.6.0 · Source§

1.0.0 · Source§

1.22.0 · Source§

1.22.0 · Source§

1.45.0 · Source§

1.45.0 · Source§

1.0.0 · Source§

1.0.0 · Source§

1.30.0 (const: unstable) · Source§

1.8.0 · Source§

1.28.0 · Source§

1.30.0 (const: unstable) · Source§

1.14.0 · Source§

1.8.0 · Source§

1.77.0 · Source§

Source§

Creates a new BorrowedBuf from a fully initialized slice.

Source§

Creates a new BorrowedBuf from an uninitialized buffer.

Use set_init if part of the buffer is known to be already initialized.

Source§

Creates a new BorrowedBuf from a cursor.

Use BorrowedCursor::with_unfilled_buf instead for a safer alternative.

1.19.0 · Source§

Source§

1.17.0 (const: unstable) · Source§

1.56.0 · Source§

1.56.0 · Source§

1.17.0 · Source§

1.21.0 · Source§

1.21.0 · Source§

1.0.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.84.0 · Source§

1.19.0 · Source§

1.45.0 · Source§

1.71.0 · Source§

This trait is implemented for tuples up to twelve items long.

1.34.0 (const: unstable) · Source§

Stability note: This impl does not yet exist, but we are “reserving space” to add it in the future. See rust-lang/rust#64715 for details.

1.23.0 (const: unstable) · Source§

1.25.0 (const: unstable) · Source§

1.25.0 (const: unstable) · Source§

1.71.0 · Source§

This trait is implemented for tuples up to twelve items long.

1.31.0 (const: unstable) · Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

1.24.0 · Source§

1.0.0 · Source§

1.63.0 · Source§

Available on Windows only.

1.12.0 (const: unstable) · Source§

1.36.0 (const: unstable) · Source§

1.6.0 · Source§

1.12.0 (const: unstable) · Source§

1.70.0 (const: unstable) · Source§

1.12.0 (const: unstable) · Source§

Source§

1.12.0 (const: unstable) · Source§

Source§

1.6.0 · Source§

Source§

Source§

1.6.0 · Source§

Source§

1.24.0 · Source§

1.70.0 · Source§

Source§

1.24.0 · Source§

1.0.0 (const: unstable) · Source§

1.18.0 · Source§

1.33.0 · Source§

1.21.0 · Source§

1.21.0 · Source§

1.5.0 · Source§

1.10.0 · Source§

1.20.0 · Source§

1.5.0 · Source§

1.10.0 · Source§

1.21.0 · Source§

1.21.0 · Source§

1.74.0 · Source§

1.74.0 · Source§

1.45.0 · Source§

1.56.0 · Source§

1.56.0 · Source§

1.56.0 · Source§

1.56.0 · Source§

1.56.0 · Source§

1.74.0 · Source§

Source§

1.74.0 · Source§

1.44.0 · Source§

Source§

Source§

Source§

Source§

1.0.0 · Source§

1.0.0 · Source§

1.0.0 · Source§

Source§

Source§

1.51.0 · Source§

1.51.0 · Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§

Source§