From in core::convert - Rust (original) (raw)
impl From<AsciiChar> for char
impl From<AsciiChar> for u8
impl From<AsciiChar> for u16
impl From<AsciiChar> for u32
impl From<AsciiChar> for u64
impl From<AsciiChar> for u128
1.36.0 (const: unstable) · Source§
impl From<Infallible> for TryFromSliceError
1.34.0 (const: unstable) · Source§
impl From<Infallible> for TryFromIntError
1.68.0 (const: unstable) · Source§
impl From<bool> for f16
1.68.0 (const: unstable) · Source§
impl From<bool> for f32
1.68.0 (const: unstable) · Source§
impl From<bool> for f64
1.68.0 (const: unstable) · Source§
impl From<bool> for f128
1.28.0 (const: unstable) · Source§
impl From<bool> for i8
1.28.0 (const: unstable) · Source§
impl From<bool> for i16
1.28.0 (const: unstable) · Source§
impl From<bool> for i32
1.28.0 (const: unstable) · Source§
impl From<bool> for i64
1.28.0 (const: unstable) · Source§
impl From<bool> for i128
1.28.0 (const: unstable) · Source§
impl From<bool> for isize
1.28.0 (const: unstable) · Source§
impl From<bool> for u8
1.28.0 (const: unstable) · Source§
impl From<bool> for u16
1.28.0 (const: unstable) · Source§
impl From<bool> for u32
1.28.0 (const: unstable) · Source§
impl From<bool> for u64
1.28.0 (const: unstable) · Source§
impl From<bool> for u128
1.28.0 (const: unstable) · Source§
impl From<bool> for usize
1.24.0 (const: unstable) · Source§
impl From<bool> for AtomicBool
1.13.0 (const: unstable) · Source§
impl From<char> for u32
1.51.0 (const: unstable) · Source§
impl From<char> for u64
1.51.0 (const: unstable) · Source§
impl From<char> for u128
1.6.0 (const: unstable) · Source§
impl From<f16> for f64
1.6.0 (const: unstable) · Source§
impl From<f16> for f128
1.6.0 (const: unstable) · Source§
impl From<f32> for f64
1.6.0 (const: unstable) · Source§
impl From<f32> for f128
1.6.0 (const: unstable) · Source§
impl From<f64> for f128
1.6.0 (const: unstable) · Source§
impl From<i8> for f16
1.6.0 (const: unstable) · Source§
impl From<i8> for f32
1.6.0 (const: unstable) · Source§
impl From<i8> for f64
1.6.0 (const: unstable) · Source§
impl From<i8> for f128
1.5.0 (const: unstable) · Source§
impl From<i8> for i16
1.5.0 (const: unstable) · Source§
impl From<i8> for i32
1.5.0 (const: unstable) · Source§
impl From<i8> for i64
1.26.0 (const: unstable) · Source§
impl From<i8> for i128
1.5.0 (const: unstable) · Source§
impl From<i8> for isize
1.34.0 (const: unstable) · Source§
impl From<i8> for AtomicI8
1.6.0 (const: unstable) · Source§
impl From<i16> for f32
1.6.0 (const: unstable) · Source§
impl From<i16> for f64
1.6.0 (const: unstable) · Source§
impl From<i16> for f128
1.5.0 (const: unstable) · Source§
impl From<i16> for i32
1.5.0 (const: unstable) · Source§
impl From<i16> for i64
1.26.0 (const: unstable) · Source§
impl From<i16> for i128
1.26.0 (const: unstable) · Source§
impl From<i16> for isize
1.34.0 (const: unstable) · Source§
impl From<i16> for AtomicI16
1.6.0 (const: unstable) · Source§
impl From<i32> for f64
1.6.0 (const: unstable) · Source§
impl From<i32> for f128
1.5.0 (const: unstable) · Source§
impl From<i32> for i64
1.26.0 (const: unstable) · Source§
impl From<i32> for i128
1.34.0 (const: unstable) · Source§
impl From<i32> for AtomicI32
1.26.0 (const: unstable) · Source§
impl From<i64> for i128
1.34.0 (const: unstable) · Source§
impl From<i64> for AtomicI64
1.23.0 (const: unstable) · Source§
impl From<isize> for AtomicIsize
1.34.0 (const: unstable) · Source§
impl From<!> for Infallible
impl From<!> for TryFromIntError
1.13.0 (const: unstable) · Source§
impl From<u8> for char
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§
impl From<u8> for f16
1.6.0 (const: unstable) · Source§
impl From<u8> for f32
1.6.0 (const: unstable) · Source§
impl From<u8> for f64
1.6.0 (const: unstable) · Source§
impl From<u8> for f128
1.5.0 (const: unstable) · Source§
impl From<u8> for i16
1.5.0 (const: unstable) · Source§
impl From<u8> for i32
1.5.0 (const: unstable) · Source§
impl From<u8> for i64
1.26.0 (const: unstable) · Source§
impl From<u8> for i128
1.26.0 (const: unstable) · Source§
impl From<u8> for isize
1.5.0 (const: unstable) · Source§
impl From<u8> for u16
1.5.0 (const: unstable) · Source§
impl From<u8> for u32
1.5.0 (const: unstable) · Source§
impl From<u8> for u64
1.26.0 (const: unstable) · Source§
impl From<u8> for u128
1.5.0 (const: unstable) · Source§
impl From<u8> for usize
1.34.0 (const: unstable) · Source§
impl From<u8> for AtomicU8
1.6.0 (const: unstable) · Source§
impl From<u16> for f32
1.6.0 (const: unstable) · Source§
impl From<u16> for f64
1.6.0 (const: unstable) · Source§
impl From<u16> for f128
1.5.0 (const: unstable) · Source§
impl From<u16> for i32
1.5.0 (const: unstable) · Source§
impl From<u16> for i64
1.26.0 (const: unstable) · Source§
impl From<u16> for i128
1.5.0 (const: unstable) · Source§
impl From<u16> for u32
1.5.0 (const: unstable) · Source§
impl From<u16> for u64
1.26.0 (const: unstable) · Source§
impl From<u16> for u128
1.26.0 (const: unstable) · Source§
impl From<u16> for usize
1.34.0 (const: unstable) · Source§
impl From<u16> for AtomicU16
1.6.0 (const: unstable) · Source§
impl From<u32> for f64
1.6.0 (const: unstable) · Source§
impl From<u32> for f128
1.5.0 (const: unstable) · Source§
impl From<u32> for i64
1.26.0 (const: unstable) · Source§
impl From<u32> for i128
1.5.0 (const: unstable) · Source§
impl From<u32> for u64
1.26.0 (const: unstable) · Source§
impl From<u32> for u128
1.1.0 (const: unstable) · Source§
impl From<u32> for Ipv4Addr
1.34.0 (const: unstable) · Source§
impl From<u32> for AtomicU32
1.26.0 (const: unstable) · Source§
impl From<u64> for i128
1.26.0 (const: unstable) · Source§
impl From<u64> for u128
1.34.0 (const: unstable) · Source§
impl From<u64> for AtomicU64
1.26.0 (const: unstable) · Source§
impl From<u128> for Ipv6Addr
1.23.0 (const: unstable) · Source§
impl From<usize> for AtomicUsize
impl From<__m128> for f32x4
Available on x86 or x86-64 only.
impl From<__m128d> for f64x2
Available on x86 or x86-64 only.
impl From<__m128i> for i8x16
Available on x86 or x86-64 only.
impl From<__m128i> for i16x8
Available on x86 or x86-64 only.
impl From<__m128i> for i32x4
Available on x86 or x86-64 only.
impl From<__m128i> for i64x2
Available on x86 or x86-64 only.
impl From<__m128i> for isizex2
Available on (x86 or x86-64) only.
impl From<__m128i> for u8x16
Available on x86 or x86-64 only.
impl From<__m128i> for u16x8
Available on x86 or x86-64 only.
impl From<__m128i> for u32x4
Available on x86 or x86-64 only.
impl From<__m128i> for u64x2
Available on x86 or x86-64 only.
impl From<__m128i> for usizex2
Available on (x86 or x86-64) only.
impl From<__m256> for f32x8
Available on x86 or x86-64 only.
impl From<__m256d> for f64x4
Available on x86 or x86-64 only.
impl From<__m256i> for i8x32
Available on x86 or x86-64 only.
impl From<__m256i> for i16x16
Available on x86 or x86-64 only.
impl From<__m256i> for i32x8
Available on x86 or x86-64 only.
impl From<__m256i> for i64x4
Available on x86 or x86-64 only.
impl From<__m256i> for isizex4
Available on (x86 or x86-64) only.
impl From<__m256i> for u8x32
Available on x86 or x86-64 only.
impl From<__m256i> for u16x16
Available on x86 or x86-64 only.
impl From<__m256i> for u32x8
Available on x86 or x86-64 only.
impl From<__m256i> for u64x4
Available on x86 or x86-64 only.
impl From<__m256i> for usizex4
Available on (x86 or x86-64) only.
impl From<__m512> for f32x16
Available on x86 or x86-64 only.
impl From<__m512d> for f64x8
Available on x86 or x86-64 only.
impl From<__m512i> for i8x64
Available on x86 or x86-64 only.
impl From<__m512i> for i16x32
Available on x86 or x86-64 only.
impl From<__m512i> for i32x16
Available on x86 or x86-64 only.
impl From<__m512i> for i64x8
Available on x86 or x86-64 only.
impl From<__m512i> for isizex8
Available on (x86 or x86-64) only.
impl From<__m512i> for u8x64
Available on x86 or x86-64 only.
impl From<__m512i> for u16x32
Available on x86 or x86-64 only.
impl From<__m512i> for u32x16
Available on x86 or x86-64 only.
impl From<__m512i> for u64x8
Available on x86 or x86-64 only.
impl From<__m512i> for usizex8
Available on (x86 or x86-64) only.
1.16.0 (const: unstable) · Source§
impl From<Ipv4Addr> for IpAddr
1.1.0 (const: unstable) · Source§
impl From<Ipv4Addr> for u32
1.16.0 (const: unstable) · Source§
impl From<Ipv6Addr> for IpAddr
1.26.0 (const: unstable) · Source§
impl From<Ipv6Addr> for u128
1.16.0 (const: unstable) · Source§
impl From<SocketAddrV4> for SocketAddr
1.16.0 (const: unstable) · Source§
impl From<SocketAddrV6> for SocketAddr
1.41.0 (const: unstable) · Source§
impl From<NonZero<i8>> for NonZero<i16>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i8>> for NonZero<i32>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i8>> for NonZero<i64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i8>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i8>> for NonZero<isize>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i16>> for NonZero<i32>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i16>> for NonZero<i64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i16>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i16>> for NonZero<isize>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i32>> for NonZero<i64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i32>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<i64>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<i16>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<i32>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<i64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<isize>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<u16>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<u32>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<u64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<u128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u8>> for NonZero<usize>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<i32>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<i64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<u32>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<u64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<u128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u16>> for NonZero<usize>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u32>> for NonZero<i64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u32>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u32>> for NonZero<u64>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u32>> for NonZero<u128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u64>> for NonZero<i128>
1.41.0 (const: unstable) · Source§
impl From<NonZero<u64>> for NonZero<u128>
impl From<Alignment> for usize
impl From<Alignment> for NonZero<usize>
impl From<Simd<f32, 4>> for __m128
Available on x86 or x86-64 only.
impl From<Simd<f32, 8>> for __m256
Available on x86 or x86-64 only.
impl From<Simd<f32, 16>> for __m512
Available on x86 or x86-64 only.
impl From<Simd<f64, 2>> for __m128d
Available on x86 or x86-64 only.
impl From<Simd<f64, 4>> for __m256d
Available on x86 or x86-64 only.
impl From<Simd<f64, 8>> for __m512d
Available on x86 or x86-64 only.
impl From<Simd<i8, 16>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<i8, 32>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<i8, 64>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<i16, 8>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<i16, 16>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<i16, 32>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<i32, 4>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<i32, 8>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<i32, 16>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<i64, 2>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<i64, 4>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<i64, 8>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<isize, 2>> for __m128i
Available on (x86 or x86-64) only.
impl From<Simd<isize, 4>> for __m256i
Available on (x86 or x86-64) only.
impl From<Simd<isize, 8>> for __m512i
Available on (x86 or x86-64) only.
impl From<Simd<u8, 16>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<u8, 32>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<u8, 64>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<u16, 8>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<u16, 16>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<u16, 32>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<u32, 4>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<u32, 8>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<u32, 16>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<u64, 2>> for __m128i
Available on x86 or x86-64 only.
impl From<Simd<u64, 4>> for __m256i
Available on x86 or x86-64 only.
impl From<Simd<u64, 8>> for __m512i
Available on x86 or x86-64 only.
impl From<Simd<usize, 2>> for __m128i
Available on (x86 or x86-64) only.
impl From<Simd<usize, 4>> for __m256i
Available on (x86 or x86-64) only.
impl From<Simd<usize, 8>> for __m512i
Available on (x86 or x86-64) only.
1.17.0 (const: unstable) · Source§
impl From<[u8; 4]> for IpAddr
1.9.0 (const: unstable) · Source§
impl From<[u8; 4]> for Ipv4Addr
1.17.0 (const: unstable) · Source§
impl From<[u8; 16]> for IpAddr
1.9.0 (const: unstable) · Source§
impl From<[u8; 16]> for Ipv6Addr
1.17.0 (const: unstable) · Source§
impl From<[u16; 8]> for IpAddr
1.16.0 (const: unstable) · Source§
impl From<[u16; 8]> for Ipv6Addr
1.30.0 (const: unstable) · Source§
impl<'a, T> From<&'a Option> for Option<&'a T>
1.30.0 (const: unstable) · Source§
impl<'a, T> From<&'a mut Option> for Option<&'a mut T>
impl<'data> From<&'data mut [u8]> for BorrowedBuf<'data>
Creates a new BorrowedBuf from a fully initialized slice.
impl<'data> From<&'data mut [MaybeUninit<u8>]> for BorrowedBuf<'data>
Creates a new BorrowedBuf from an uninitialized buffer.
Use set_filled if part of the buffer is known to be already filled.
impl<'data> From<BorrowedCursor<'data>> for BorrowedBuf<'data>
Creates a new BorrowedBuf from a cursor.
Use BorrowedCursor::with_unfilled_buf instead for a safer alternative.
1.17.0 (const: unstable) · Source§
impl<I: Into<IpAddr>> From<(I, u16)> for SocketAddr
impl From<[T; N]> for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
1.34.0 (const: unstable) · Source§
impl From<!> for T
Stability note: This impl does not yet exist, but we are “reserving space” to add it in the future. Seerust-lang/rust#64715 for details.
1.23.0 (const: unstable) · Source§
impl From<*mut T> for AtomicPtr
impl From<(T₁, T₂, …, Tₙ)> for [T; N]
This trait is implemented for tuples up to twelve items long.
1.31.0 (const: unstable) · Source§
impl From<NonZero> for T
impl From<Range> for core::range::Range
impl From<RangeFrom> for core::range::RangeFrom
impl From<RangeInclusive> for core::range::RangeInclusive
impl From<RangeToInclusive> for core::range::RangeToInclusive
impl From<Range> for core::ops::Range
impl From<RangeFrom> for core::ops::RangeFrom
impl From<RangeInclusive> for core::ops::RangeInclusive
impl From<RangeToInclusive> for core::ops::RangeToInclusive
1.12.0 (const: unstable) · Source§
impl From for Option
1.36.0 (const: unstable) · Source§
impl From for Poll
1.12.0 (const: unstable) · Source§
impl From for Cell
1.70.0 (const: unstable) · Source§
impl From for OnceCell
1.12.0 (const: unstable) · Source§
impl From for RefCell
impl From for SyncUnsafeCell
1.12.0 (const: unstable) · Source§
impl From for UnsafeCell
impl From for UnsafePinned
impl From for Exclusive
1.0.0 (const: unstable) · Source§
impl From for T
impl<T, const N: usize> From<[T; N]> for Simd<T, N>
impl<T, const N: usize> From<Mask<T, N>> for [bool; N]
impl<T, const N: usize> From<Simd<T, N>> for [T; N]
impl<T, const N: usize> From<[bool; N]> for Mask<T, N>
1.25.0 (const: unstable) · Source§
impl<T: PointeeSized> From<&T> for NonNull
1.25.0 (const: unstable) · Source§