Trait wasmer_types::lib::std::convert::From

1.0.0 · source ·
pub trait From<T>: Sized {
    // Required method
    fn from(value: T) -> Self;
}
Expand description

Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.

One should always prefer implementing From over Into because implementing From automatically provides one with an implementation of Into thanks to the blanket implementation in the standard library.

Only implement Into when targeting a version prior to Rust 1.41 and converting to a type outside the current crate. From was not able to do these types of conversions in earlier versions because of Rust’s orphaning rules. See Into for more details.

Prefer using Into over using From when specifying trait bounds on a generic function. This way, types that directly implement Into can be used as arguments as well.

The From is also very useful when performing error handling. When constructing a function that is capable of failing, the return type will generally be of the form Result<T, E>. The From trait simplifies error handling by allowing a function to return a single error type that encapsulate multiple error types. See the “Examples” section and the book for more details.

Note: This trait must not fail. The From trait is intended for perfect conversions. If the conversion can fail or is not perfect, use TryFrom.

Generic Implementations

  • From<T> for U implies Into<U> for T
  • From is reflexive, which means that From<T> for T is implemented

Examples

String implements From<&str>:

An explicit conversion from a &str to a String is done as follows:

let string = "hello".to_string();
let other_string = String::from("hello");

assert_eq!(string, other_string);

While performing error handling it is often useful to implement From for your own error type. By converting underlying error types to our own custom error type that encapsulates the underlying error type, we can return a single error type without losing information on the underlying cause. The ‘?’ operator automatically converts the underlying error type to our custom error type by calling Into<CliError>::into which is automatically provided when implementing From. The compiler then infers which implementation of Into should be used.

use std::fs;
use std::io;
use std::num;

enum CliError {
    IoError(io::Error),
    ParseError(num::ParseIntError),
}

impl From<io::Error> for CliError {
    fn from(error: io::Error) -> Self {
        CliError::IoError(error)
    }
}

impl From<num::ParseIntError> for CliError {
    fn from(error: num::ParseIntError) -> Self {
        CliError::ParseError(error)
    }
}

fn open_and_parse_file(file_name: &str) -> Result<i32, CliError> {
    let mut contents = fs::read_to_string(&file_name)?;
    let num: i32 = contents.trim().parse()?;
    Ok(num)
}

Required Methods§

source

fn from(value: T) -> Self

Converts to this type from the input type.

Implementors§

1.17.0 · source§

impl From<&str> for Box<str, Global>

1.6.0 · source§

impl From<&str> for Box<dyn Error + 'static, Global>

1.21.0 · source§

impl From<&str> for Rc<str>

source§

impl From<&str> for String

1.21.0 · source§

impl From<&str> for Arc<str>

source§

impl From<&str> for Vec<u8, Global>

source§

impl From<&FunctionType> for FunctionType

1.35.0 · source§

impl From<&String> for String

1.17.0 · source§

impl From<&CStr> for Box<CStr, Global>

1.24.0 · source§

impl From<&CStr> for Rc<CStr>

1.24.0 · source§

impl From<&CStr> for Arc<CStr>

1.7.0 · source§

impl From<&CStr> for CString

source§

impl From<&StreamResult> for Result<MZStatus, MZError>

1.17.0 · source§

impl From<&OsStr> for Box<OsStr, Global>

1.24.0 · source§

impl From<&OsStr> for Rc<OsStr>

1.24.0 · source§

impl From<&OsStr> for Arc<OsStr>

1.17.0 · source§

impl From<&Path> for Box<Path, Global>

1.24.0 · source§

impl From<&Path> for Rc<Path>

1.24.0 · source§

impl From<&Path> for Arc<Path>

source§

impl From<&[u8]> for V128

1.44.0 · source§

impl From<&mut str> for String

source§

impl From<(String, String, u32)> for ImportKey

source§

impl From<([Type; 0], [Type; 0])> for FunctionType

source§

impl From<([Type; 0], [Type; 1])> for FunctionType

source§

impl From<([Type; 0], [Type; 2])> for FunctionType

source§

impl From<([Type; 0], [Type; 3])> for FunctionType

source§

impl From<([Type; 0], [Type; 4])> for FunctionType

source§

impl From<([Type; 0], [Type; 5])> for FunctionType

source§

impl From<([Type; 0], [Type; 6])> for FunctionType

source§

impl From<([Type; 0], [Type; 7])> for FunctionType

source§

impl From<([Type; 0], [Type; 8])> for FunctionType

source§

impl From<([Type; 0], [Type; 9])> for FunctionType

source§

impl From<([Type; 1], [Type; 0])> for FunctionType

source§

impl From<([Type; 1], [Type; 1])> for FunctionType

source§

impl From<([Type; 1], [Type; 2])> for FunctionType

source§

impl From<([Type; 1], [Type; 3])> for FunctionType

source§

impl From<([Type; 1], [Type; 4])> for FunctionType

source§

impl From<([Type; 1], [Type; 5])> for FunctionType

source§

impl From<([Type; 1], [Type; 6])> for FunctionType

source§

impl From<([Type; 1], [Type; 7])> for FunctionType

source§

impl From<([Type; 1], [Type; 8])> for FunctionType

source§

impl From<([Type; 1], [Type; 9])> for FunctionType

source§

impl From<([Type; 2], [Type; 0])> for FunctionType

source§

impl From<([Type; 2], [Type; 1])> for FunctionType

source§

impl From<([Type; 2], [Type; 2])> for FunctionType

source§

impl From<([Type; 2], [Type; 3])> for FunctionType

source§

impl From<([Type; 2], [Type; 4])> for FunctionType

source§

impl From<([Type; 2], [Type; 5])> for FunctionType

source§

impl From<([Type; 2], [Type; 6])> for FunctionType

source§

impl From<([Type; 2], [Type; 7])> for FunctionType

source§

impl From<([Type; 2], [Type; 8])> for FunctionType

source§

impl From<([Type; 2], [Type; 9])> for FunctionType

source§

impl From<([Type; 3], [Type; 0])> for FunctionType

source§

impl From<([Type; 3], [Type; 1])> for FunctionType

source§

impl From<([Type; 3], [Type; 2])> for FunctionType

source§

impl From<([Type; 3], [Type; 3])> for FunctionType

source§

impl From<([Type; 3], [Type; 4])> for FunctionType

source§

impl From<([Type; 3], [Type; 5])> for FunctionType

source§

impl From<([Type; 3], [Type; 6])> for FunctionType

source§

impl From<([Type; 3], [Type; 7])> for FunctionType

source§

impl From<([Type; 3], [Type; 8])> for FunctionType

source§

impl From<([Type; 3], [Type; 9])> for FunctionType

source§

impl From<([Type; 4], [Type; 0])> for FunctionType

source§

impl From<([Type; 4], [Type; 1])> for FunctionType

source§

impl From<([Type; 4], [Type; 2])> for FunctionType

source§

impl From<([Type; 4], [Type; 3])> for FunctionType

source§

impl From<([Type; 4], [Type; 4])> for FunctionType

source§

impl From<([Type; 4], [Type; 5])> for FunctionType

source§

impl From<([Type; 4], [Type; 6])> for FunctionType

source§

impl From<([Type; 4], [Type; 7])> for FunctionType

source§

impl From<([Type; 4], [Type; 8])> for FunctionType

source§

impl From<([Type; 4], [Type; 9])> for FunctionType

source§

impl From<([Type; 5], [Type; 0])> for FunctionType

source§

impl From<([Type; 5], [Type; 1])> for FunctionType

source§

impl From<([Type; 5], [Type; 2])> for FunctionType

source§

impl From<([Type; 5], [Type; 3])> for FunctionType

source§

impl From<([Type; 5], [Type; 4])> for FunctionType

source§

impl From<([Type; 5], [Type; 5])> for FunctionType

source§

impl From<([Type; 5], [Type; 6])> for FunctionType

source§

impl From<([Type; 5], [Type; 7])> for FunctionType

source§

impl From<([Type; 5], [Type; 8])> for FunctionType

source§

impl From<([Type; 5], [Type; 9])> for FunctionType

source§

impl From<([Type; 6], [Type; 0])> for FunctionType

source§

impl From<([Type; 6], [Type; 1])> for FunctionType

source§

impl From<([Type; 6], [Type; 2])> for FunctionType

source§

impl From<([Type; 6], [Type; 3])> for FunctionType

source§

impl From<([Type; 6], [Type; 4])> for FunctionType

source§

impl From<([Type; 6], [Type; 5])> for FunctionType

source§

impl From<([Type; 6], [Type; 6])> for FunctionType

source§

impl From<([Type; 6], [Type; 7])> for FunctionType

source§

impl From<([Type; 6], [Type; 8])> for FunctionType

source§

impl From<([Type; 6], [Type; 9])> for FunctionType

source§

impl From<([Type; 7], [Type; 0])> for FunctionType

source§

impl From<([Type; 7], [Type; 1])> for FunctionType

source§

impl From<([Type; 7], [Type; 2])> for FunctionType

source§

impl From<([Type; 7], [Type; 3])> for FunctionType

source§

impl From<([Type; 7], [Type; 4])> for FunctionType

source§

impl From<([Type; 7], [Type; 5])> for FunctionType

source§

impl From<([Type; 7], [Type; 6])> for FunctionType

source§

impl From<([Type; 7], [Type; 7])> for FunctionType

source§

impl From<([Type; 7], [Type; 8])> for FunctionType

source§

impl From<([Type; 7], [Type; 9])> for FunctionType

source§

impl From<([Type; 8], [Type; 0])> for FunctionType

source§

impl From<([Type; 8], [Type; 1])> for FunctionType

source§

impl From<([Type; 8], [Type; 2])> for FunctionType

source§

impl From<([Type; 8], [Type; 3])> for FunctionType

source§

impl From<([Type; 8], [Type; 4])> for FunctionType

source§

impl From<([Type; 8], [Type; 5])> for FunctionType

source§

impl From<([Type; 8], [Type; 6])> for FunctionType

source§

impl From<([Type; 8], [Type; 7])> for FunctionType

source§

impl From<([Type; 8], [Type; 8])> for FunctionType

source§

impl From<([Type; 8], [Type; 9])> for FunctionType

source§

impl From<([Type; 9], [Type; 0])> for FunctionType

source§

impl From<([Type; 9], [Type; 1])> for FunctionType

source§

impl From<([Type; 9], [Type; 2])> for FunctionType

source§

impl From<([Type; 9], [Type; 3])> for FunctionType

source§

impl From<([Type; 9], [Type; 4])> for FunctionType

source§

impl From<([Type; 9], [Type; 5])> for FunctionType

source§

impl From<([Type; 9], [Type; 6])> for FunctionType

source§

impl From<([Type; 9], [Type; 7])> for FunctionType

source§

impl From<([Type; 9], [Type; 8])> for FunctionType

source§

impl From<([Type; 9], [Type; 9])> for FunctionType

source§

impl From<Mutability> for bool

source§

impl From<CompileError> for DeserializeError

source§

impl From<WasmError> for CompileError

1.45.0 · source§

impl From<Cow<'_, str>> for Box<str, Global>

1.45.0 · source§

impl From<Cow<'_, CStr>> for Box<CStr, Global>

1.45.0 · source§

impl From<Cow<'_, OsStr>> for Box<OsStr, Global>

1.45.0 · source§

impl From<Cow<'_, Path>> for Box<Path, Global>

source§

impl From<Infallible> for NonZeroCheckError

1.36.0 · source§

impl From<Infallible> for TryFromSliceError

1.34.0 · source§

impl From<Infallible> for TryFromIntError

source§

impl From<Infallible> for CharCheckError

source§

impl From<TryReserveErrorKind> for TryReserveError

source§

impl From<Pointer> for u64

1.14.0 · source§

impl From<ErrorKind> for std::io::error::Error

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

source§

impl From<bool> for Mutability

1.68.0 · source§

impl From<bool> for f32

1.68.0 · source§

impl From<bool> for f64

1.28.0 · source§

impl From<bool> for i8

1.28.0 · source§

impl From<bool> for i16

1.28.0 · source§

impl From<bool> for i32

1.28.0 · source§

impl From<bool> for i64

1.28.0 · source§

impl From<bool> for i128

1.28.0 · source§

impl From<bool> for isize

1.28.0 · source§

impl From<bool> for u8

1.28.0 · source§

impl From<bool> for u16

1.28.0 · source§

impl From<bool> for u32

1.28.0 · source§

impl From<bool> for u64

1.28.0 · source§

impl From<bool> for u128

1.28.0 · source§

impl From<bool> for usize

1.24.0 · source§

impl From<bool> for AtomicBool

1.13.0 · source§

impl From<char> for u32

1.51.0 · source§

impl From<char> for u64

1.51.0 · source§

impl From<char> for u128

1.46.0 · source§

impl From<char> for String

§

impl From<char> for BigEndian<char>

§

impl From<char> for LittleEndian<char>

§

impl From<char> for NativeEndian<char>

1.6.0 · source§

impl From<f32> for f64

source§

impl From<f32> for RawValue

§

impl From<f32> for BigEndian<f32>

§

impl From<f32> for LittleEndian<f32>

§

impl From<f32> for NativeEndian<f32>

source§

impl From<f64> for RawValue

§

impl From<f64> for BigEndian<f64>

§

impl From<f64> for LittleEndian<f64>

§

impl From<f64> for NativeEndian<f64>

1.6.0 · source§

impl From<i8> for f32

1.6.0 · source§

impl From<i8> for f64

1.5.0 · source§

impl From<i8> for i16

1.5.0 · source§

impl From<i8> for i32

1.5.0 · source§

impl From<i8> for i64

1.26.0 · source§

impl From<i8> for i128

1.5.0 · source§

impl From<i8> for isize

1.34.0 · source§

impl From<i8> for AtomicI8

1.6.0 · source§

impl From<i16> for f32

1.6.0 · source§

impl From<i16> for f64

1.5.0 · source§

impl From<i16> for i32

1.5.0 · source§

impl From<i16> for i64

1.26.0 · source§

impl From<i16> for i128

1.26.0 · source§

impl From<i16> for isize

1.34.0 · source§

impl From<i16> for AtomicI16

§

impl From<i16> for BigEndian<i16>

§

impl From<i16> for BigEndian<AtomicI16>

§

impl From<i16> for LittleEndian<i16>

§

impl From<i16> for LittleEndian<AtomicI16>

§

impl From<i16> for NativeEndian<i16>

§

impl From<i16> for NativeEndian<AtomicI16>

1.6.0 · source§

impl From<i32> for f64

1.5.0 · source§

impl From<i32> for i64

1.26.0 · source§

impl From<i32> for i128

1.34.0 · source§

impl From<i32> for AtomicI32

source§

impl From<i32> for RawValue

§

impl From<i32> for BigEndian<i32>

§

impl From<i32> for BigEndian<AtomicI32>

§

impl From<i32> for LittleEndian<i32>

§

impl From<i32> for LittleEndian<AtomicI32>

§

impl From<i32> for NativeEndian<i32>

§

impl From<i32> for NativeEndian<AtomicI32>

1.26.0 · source§

impl From<i64> for i128

1.34.0 · source§

impl From<i64> for AtomicI64

source§

impl From<i64> for RawValue

§

impl From<i64> for BigEndian<i64>

§

impl From<i64> for BigEndian<AtomicI64>

§

impl From<i64> for LittleEndian<i64>

§

impl From<i64> for LittleEndian<AtomicI64>

§

impl From<i64> for NativeEndian<i64>

§

impl From<i64> for NativeEndian<AtomicI64>

§

impl From<i128> for BigEndian<i128>

§

impl From<i128> for LittleEndian<i128>

§

impl From<i128> for NativeEndian<i128>

1.23.0 · source§

impl From<isize> for AtomicIsize

1.34.0 · source§

impl From<!> for Infallible

source§

impl From<!> for TryFromIntError

1.13.0 · 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 · source§

impl From<u8> for f32

1.6.0 · source§

impl From<u8> for f64

1.5.0 · source§

impl From<u8> for i16

1.5.0 · source§

impl From<u8> for i32

1.5.0 · source§

impl From<u8> for i64

1.26.0 · source§

impl From<u8> for i128

1.26.0 · source§

impl From<u8> for isize

1.5.0 · source§

impl From<u8> for u16

1.5.0 · source§

impl From<u8> for u32

1.5.0 · source§

impl From<u8> for u64

1.26.0 · source§

impl From<u8> for u128

1.5.0 · source§

impl From<u8> for usize

1.34.0 · source§

impl From<u8> for AtomicU8

1.61.0 · source§

impl From<u8> for ExitCode

1.6.0 · source§

impl From<u16> for f32

1.6.0 · source§

impl From<u16> for f64

1.5.0 · source§

impl From<u16> for i32

1.5.0 · source§

impl From<u16> for i64

1.26.0 · source§

impl From<u16> for i128

1.5.0 · source§

impl From<u16> for u32

1.5.0 · source§

impl From<u16> for u64

1.26.0 · source§

impl From<u16> for u128

1.26.0 · source§

impl From<u16> for usize

1.34.0 · source§

impl From<u16> for AtomicU16

§

impl From<u16> for BigEndian<u16>

§

impl From<u16> for BigEndian<AtomicU16>

§

impl From<u16> for LittleEndian<u16>

§

impl From<u16> for LittleEndian<AtomicU16>

§

impl From<u16> for NativeEndian<u16>

§

impl From<u16> for NativeEndian<AtomicU16>

1.6.0 · source§

impl From<u32> for f64

1.5.0 · source§

impl From<u32> for i64

1.26.0 · source§

impl From<u32> for i128

1.5.0 · source§

impl From<u32> for u64

1.26.0 · source§

impl From<u32> for u128

source§

impl From<u32> for Bytes

source§

impl From<u32> for Pages

1.34.0 · source§

impl From<u32> for AtomicU32

1.1.0 · source§

impl From<u32> for Ipv4Addr

§

impl From<u32> for BigEndian<u32>

§

impl From<u32> for BigEndian<AtomicU32>

§

impl From<u32> for LittleEndian<u32>

§

impl From<u32> for LittleEndian<AtomicU32>

§

impl From<u32> for NativeEndian<u32>

§

impl From<u32> for NativeEndian<AtomicU32>

1.26.0 · source§

impl From<u64> for i128

1.26.0 · source§

impl From<u64> for u128

1.34.0 · source§

impl From<u64> for AtomicU64

§

impl From<u64> for BigEndian<u64>

§

impl From<u64> for BigEndian<AtomicU64>

§

impl From<u64> for LittleEndian<u64>

§

impl From<u64> for LittleEndian<AtomicU64>

§

impl From<u64> for NativeEndian<u64>

§

impl From<u64> for NativeEndian<AtomicU64>

1.26.0 · source§

impl From<u128> for Ipv6Addr

§

impl From<u128> for BigEndian<u128>

§

impl From<u128> for LittleEndian<u128>

§

impl From<u128> for NativeEndian<u128>

source§

impl From<usize> for Bytes

1.23.0 · source§

impl From<usize> for AtomicUsize

source§

impl From<MiddlewareError> for WasmError

source§

impl From<Pages> for Bytes

1.18.0 · source§

impl From<Box<str, Global>> for String

1.18.0 · source§

impl From<Box<CStr, Global>> for CString

1.18.0 · source§

impl From<Box<OsStr, Global>> for OsString

1.18.0 · source§

impl From<Box<Path, Global>> for PathBuf

source§

impl From<Alignment> for usize

source§

impl From<Alignment> for NonZeroUsize

1.62.0 · source§

impl From<Rc<str>> for Rc<[u8]>

1.20.0 · source§

impl From<String> for Box<str, Global>

1.6.0 · source§

impl From<String> for Box<dyn Error + 'static, Global>

source§

impl From<String> for Box<dyn Error + Sync + Send + 'static, Global>

1.21.0 · source§

impl From<String> for Rc<str>

1.21.0 · source§

impl From<String> for Arc<str>

1.14.0 · source§

impl From<String> for Vec<u8, Global>

source§

impl From<String> for OsString

source§

impl From<String> for PathBuf

1.24.0 · source§

impl From<RecvError> for RecvTimeoutError

1.24.0 · source§

impl From<RecvError> for TryRecvError

1.62.0 · source§

impl From<Arc<str>> for Arc<[u8]>

1.43.0 · source§

impl From<Vec<NonZeroU8, Global>> for CString

1.20.0 · source§

impl From<CString> for Box<CStr, Global>

1.24.0 · source§

impl From<CString> for Rc<CStr>

1.24.0 · source§

impl From<CString> for Arc<CStr>

1.7.0 · source§

impl From<CString> for Vec<u8, Global>

source§

impl From<NulError> for std::io::error::Error

source§

impl From<LayoutError> for TryReserveErrorKind

source§

impl From<__m128> for Simd<f32, 4>

source§

impl From<__m128d> for Simd<f64, 2>

source§

impl From<__m128i> for Simd<i8, 16>

source§

impl From<__m128i> for Simd<i16, 8>

source§

impl From<__m128i> for Simd<i32, 4>

source§

impl From<__m128i> for Simd<i64, 2>

source§

impl From<__m128i> for Simd<isize, 2>

source§

impl From<__m128i> for Simd<u8, 16>

source§

impl From<__m128i> for Simd<u16, 8>

source§

impl From<__m128i> for Simd<u32, 4>

source§

impl From<__m128i> for Simd<u64, 2>

source§

impl From<__m128i> for Simd<usize, 2>

source§

impl From<__m256> for Simd<f32, 8>

source§

impl From<__m256d> for Simd<f64, 4>

source§

impl From<__m256i> for Simd<i8, 32>

source§

impl From<__m256i> for Simd<i16, 16>

source§

impl From<__m256i> for Simd<i32, 8>

source§

impl From<__m256i> for Simd<i64, 4>

source§

impl From<__m256i> for Simd<isize, 4>

source§

impl From<__m256i> for Simd<u8, 32>

source§

impl From<__m256i> for Simd<u16, 16>

source§

impl From<__m256i> for Simd<u32, 8>

source§

impl From<__m256i> for Simd<u64, 4>

source§

impl From<__m256i> for Simd<usize, 4>

source§

impl From<__m512> for Simd<f32, 16>

source§

impl From<__m512d> for Simd<f64, 8>

source§

impl From<__m512i> for Simd<i8, 64>

source§

impl From<__m512i> for Simd<i16, 32>

source§

impl From<__m512i> for Simd<i32, 16>

source§

impl From<__m512i> for Simd<i64, 8>

source§

impl From<__m512i> for Simd<isize, 8>

source§

impl From<__m512i> for Simd<u8, 64>

source§

impl From<__m512i> for Simd<u16, 32>

source§

impl From<__m512i> for Simd<u32, 16>

source§

impl From<__m512i> for Simd<u64, 8>

source§

impl From<__m512i> for Simd<usize, 8>

source§

impl From<Simd<f32, 4>> for __m128

source§

impl From<Simd<f32, 8>> for __m256

source§

impl From<Simd<f32, 16>> for __m512

source§

impl From<Simd<f64, 2>> for __m128d

source§

impl From<Simd<f64, 4>> for __m256d

source§

impl From<Simd<f64, 8>> for __m512d

source§

impl From<Simd<i8, 16>> for __m128i

source§

impl From<Simd<i8, 32>> for __m256i

source§

impl From<Simd<i8, 64>> for __m512i

source§

impl From<Simd<i16, 8>> for __m128i

source§

impl From<Simd<i16, 16>> for __m256i

source§

impl From<Simd<i16, 32>> for __m512i

source§

impl From<Simd<i32, 4>> for __m128i

source§

impl From<Simd<i32, 8>> for __m256i

source§

impl From<Simd<i32, 16>> for __m512i

source§

impl From<Simd<i64, 2>> for __m128i

source§

impl From<Simd<i64, 4>> for __m256i

source§

impl From<Simd<i64, 8>> for __m512i

source§

impl From<Simd<isize, 2>> for __m128i

source§

impl From<Simd<isize, 4>> for __m256i

source§

impl From<Simd<isize, 8>> for __m512i

source§

impl From<Simd<u8, 16>> for __m128i

source§

impl From<Simd<u8, 32>> for __m256i

source§

impl From<Simd<u8, 64>> for __m512i

source§

impl From<Simd<u16, 8>> for __m128i

source§

impl From<Simd<u16, 16>> for __m256i

source§

impl From<Simd<u16, 32>> for __m512i

source§

impl From<Simd<u32, 4>> for __m128i

source§

impl From<Simd<u32, 8>> for __m256i

source§

impl From<Simd<u32, 16>> for __m512i

source§

impl From<Simd<u64, 2>> for __m128i

source§

impl From<Simd<u64, 4>> for __m256i

source§

impl From<Simd<u64, 8>> for __m512i

source§

impl From<Simd<usize, 2>> for __m128i

source§

impl From<Simd<usize, 4>> for __m256i

source§

impl From<Simd<usize, 8>> for __m512i

1.16.0 · source§

impl From<Ipv4Addr> for IpAddr

1.1.0 · source§

impl From<Ipv4Addr> for u32

1.16.0 · source§

impl From<Ipv6Addr> for IpAddr

1.26.0 · source§

impl From<Ipv6Addr> for u128

1.16.0 · source§

impl From<SocketAddrV4> for SocketAddr

1.16.0 · source§

impl From<SocketAddrV6> for SocketAddr

1.31.0 · source§

impl From<NonZeroI8> for i8

1.41.0 · source§

impl From<NonZeroI8> for NonZeroI16

1.41.0 · source§

impl From<NonZeroI8> for NonZeroI32

1.41.0 · source§

impl From<NonZeroI8> for NonZeroI64

1.41.0 · source§

impl From<NonZeroI8> for NonZeroI128

1.41.0 · source§

impl From<NonZeroI8> for NonZeroIsize

1.31.0 · source§

impl From<NonZeroI16> for i16

1.41.0 · source§

impl From<NonZeroI16> for NonZeroI32

1.41.0 · source§

impl From<NonZeroI16> for NonZeroI64

1.41.0 · source§

impl From<NonZeroI16> for NonZeroI128

1.41.0 · source§

impl From<NonZeroI16> for NonZeroIsize

§

impl From<NonZeroI16> for BigEndian<NonZeroI16>

§

impl From<NonZeroI16> for LittleEndian<NonZeroI16>

§

impl From<NonZeroI16> for NativeEndian<NonZeroI16>

1.31.0 · source§

impl From<NonZeroI32> for i32

1.41.0 · source§

impl From<NonZeroI32> for NonZeroI64

1.41.0 · source§

impl From<NonZeroI32> for NonZeroI128

§

impl From<NonZeroI32> for BigEndian<NonZeroI32>

§

impl From<NonZeroI32> for LittleEndian<NonZeroI32>

§

impl From<NonZeroI32> for NativeEndian<NonZeroI32>

1.31.0 · source§

impl From<NonZeroI64> for i64

1.41.0 · source§

impl From<NonZeroI64> for NonZeroI128

§

impl From<NonZeroI64> for BigEndian<NonZeroI64>

§

impl From<NonZeroI64> for LittleEndian<NonZeroI64>

§

impl From<NonZeroI64> for NativeEndian<NonZeroI64>

1.31.0 · source§

impl From<NonZeroI128> for i128

§

impl From<NonZeroI128> for BigEndian<NonZeroI128>

§

impl From<NonZeroI128> for LittleEndian<NonZeroI128>

§

impl From<NonZeroI128> for NativeEndian<NonZeroI128>

1.31.0 · source§

impl From<NonZeroIsize> for isize

1.31.0 · source§

impl From<NonZeroU8> for u8

1.41.0 · source§

impl From<NonZeroU8> for NonZeroI16

1.41.0 · source§

impl From<NonZeroU8> for NonZeroI32

1.41.0 · source§

impl From<NonZeroU8> for NonZeroI64

1.41.0 · source§

impl From<NonZeroU8> for NonZeroI128

1.41.0 · source§

impl From<NonZeroU8> for NonZeroIsize

1.41.0 · source§

impl From<NonZeroU8> for NonZeroU16

1.41.0 · source§

impl From<NonZeroU8> for NonZeroU32

1.41.0 · source§

impl From<NonZeroU8> for NonZeroU64

1.41.0 · source§

impl From<NonZeroU8> for NonZeroU128

1.41.0 · source§

impl From<NonZeroU8> for NonZeroUsize

1.31.0 · source§

impl From<NonZeroU16> for u16

1.41.0 · source§

impl From<NonZeroU16> for NonZeroI32

1.41.0 · source§

impl From<NonZeroU16> for NonZeroI64

1.41.0 · source§

impl From<NonZeroU16> for NonZeroI128

1.41.0 · source§

impl From<NonZeroU16> for NonZeroU32

1.41.0 · source§

impl From<NonZeroU16> for NonZeroU64

1.41.0 · source§

impl From<NonZeroU16> for NonZeroU128

1.41.0 · source§

impl From<NonZeroU16> for NonZeroUsize

§

impl From<NonZeroU16> for BigEndian<NonZeroU16>

§

impl From<NonZeroU16> for LittleEndian<NonZeroU16>

§

impl From<NonZeroU16> for NativeEndian<NonZeroU16>

1.31.0 · source§

impl From<NonZeroU32> for u32

1.41.0 · source§

impl From<NonZeroU32> for NonZeroI64

1.41.0 · source§

impl From<NonZeroU32> for NonZeroI128

1.41.0 · source§

impl From<NonZeroU32> for NonZeroU64

1.41.0 · source§

impl From<NonZeroU32> for NonZeroU128

source§

impl From<NonZeroU32> for getrandom::error::Error

§

impl From<NonZeroU32> for BigEndian<NonZeroU32>

§

impl From<NonZeroU32> for LittleEndian<NonZeroU32>

§

impl From<NonZeroU32> for NativeEndian<NonZeroU32>

1.31.0 · source§

impl From<NonZeroU64> for u64

1.41.0 · source§

impl From<NonZeroU64> for NonZeroI128

1.41.0 · source§

impl From<NonZeroU64> for NonZeroU128

§

impl From<NonZeroU64> for BigEndian<NonZeroU64>

§

impl From<NonZeroU64> for LittleEndian<NonZeroU64>

§

impl From<NonZeroU64> for NativeEndian<NonZeroU64>

1.31.0 · source§

impl From<NonZeroU128> for u128

§

impl From<NonZeroU128> for BigEndian<NonZeroU128>

§

impl From<NonZeroU128> for LittleEndian<NonZeroU128>

§

impl From<NonZeroU128> for NativeEndian<NonZeroU128>

1.31.0 · source§

impl From<NonZeroUsize> for usize

source§

impl From<StreamResult> for Result<MZStatus, MZError>

1.20.0 · source§

impl From<OsString> for Box<OsStr, Global>

1.24.0 · source§

impl From<OsString> for Rc<OsStr>

1.24.0 · source§

impl From<OsString> for Arc<OsStr>

source§

impl From<OsString> for PathBuf

1.63.0 · source§

impl From<File> for OwnedFd

1.20.0 · source§

impl From<File> for Stdio

source§

impl From<Error> for DeserializeError

source§

impl From<Error> for SerializeError

1.63.0 · source§

impl From<TcpListener> for OwnedFd

1.63.0 · source§

impl From<TcpStream> for OwnedFd

1.63.0 · source§

impl From<UdpSocket> for OwnedFd

1.63.0 · source§

impl From<OwnedFd> for File

1.63.0 · source§

impl From<OwnedFd> for TcpListener

1.63.0 · source§

impl From<OwnedFd> for TcpStream

1.63.0 · source§

impl From<OwnedFd> for UdpSocket

source§

impl From<OwnedFd> for PidFd

1.63.0 · source§

impl From<OwnedFd> for UnixDatagram

1.63.0 · source§

impl From<OwnedFd> for UnixListener

1.63.0 · source§

impl From<OwnedFd> for UnixStream

1.63.0 · source§

impl From<OwnedFd> for Stdio

source§

impl From<PidFd> for OwnedFd

1.63.0 · source§

impl From<UnixDatagram> for OwnedFd

1.63.0 · source§

impl From<UnixListener> for OwnedFd

1.63.0 · source§

impl From<UnixStream> for OwnedFd

1.20.0 · source§

impl From<PathBuf> for Box<Path, Global>

1.24.0 · source§

impl From<PathBuf> for Rc<Path>

1.24.0 · source§

impl From<PathBuf> for Arc<Path>

1.14.0 · source§

impl From<PathBuf> for OsString

1.63.0 · source§

impl From<ChildStderr> for OwnedFd

1.20.0 · source§

impl From<ChildStderr> for Stdio

1.63.0 · source§

impl From<ChildStdin> for OwnedFd

1.20.0 · source§

impl From<ChildStdin> for Stdio

1.63.0 · source§

impl From<ChildStdout> for OwnedFd

1.20.0 · source§

impl From<ChildStdout> for Stdio

source§

impl From<ArchivedDuration> for Duration

source§

impl From<AlignedVec> for Vec<u8, Global>

§

impl From<BigEndian<char>> for char

§

impl From<BigEndian<f32>> for f32

§

impl From<BigEndian<f64>> for f64

§

impl From<BigEndian<i16>> for i16

§

impl From<BigEndian<i32>> for i32

§

impl From<BigEndian<i64>> for i64

§

impl From<BigEndian<i128>> for i128

§

impl From<BigEndian<u16>> for u16

§

impl From<BigEndian<u32>> for u32

§

impl From<BigEndian<u64>> for u64

§

impl From<BigEndian<u128>> for u128

§

impl From<BigEndian<NonZeroI16>> for NonZeroI16

§

impl From<BigEndian<NonZeroI32>> for NonZeroI32

§

impl From<BigEndian<NonZeroI64>> for NonZeroI64

§

impl From<BigEndian<NonZeroI128>> for NonZeroI128

§

impl From<BigEndian<NonZeroU16>> for NonZeroU16

§

impl From<BigEndian<NonZeroU32>> for NonZeroU32

§

impl From<BigEndian<NonZeroU64>> for NonZeroU64

§

impl From<BigEndian<NonZeroU128>> for NonZeroU128

§

impl From<LittleEndian<char>> for char

§

impl From<LittleEndian<f32>> for f32

§

impl From<LittleEndian<f64>> for f64

§

impl From<LittleEndian<i16>> for i16

§

impl From<LittleEndian<i32>> for i32

§

impl From<LittleEndian<i64>> for i64

§

impl From<LittleEndian<i128>> for i128

§

impl From<LittleEndian<u16>> for u16

§

impl From<LittleEndian<u32>> for u32

§

impl From<LittleEndian<u64>> for u64

§

impl From<LittleEndian<u128>> for u128

§

impl From<LittleEndian<NonZeroI16>> for NonZeroI16

§

impl From<LittleEndian<NonZeroI32>> for NonZeroI32

§

impl From<LittleEndian<NonZeroI64>> for NonZeroI64

§

impl From<LittleEndian<NonZeroI128>> for NonZeroI128

§

impl From<LittleEndian<NonZeroU16>> for NonZeroU16

§

impl From<LittleEndian<NonZeroU32>> for NonZeroU32

§

impl From<LittleEndian<NonZeroU64>> for NonZeroU64

§

impl From<LittleEndian<NonZeroU128>> for NonZeroU128

§

impl From<NativeEndian<char>> for char

§

impl From<NativeEndian<f32>> for f32

§

impl From<NativeEndian<f64>> for f64

§

impl From<NativeEndian<i16>> for i16

§

impl From<NativeEndian<i32>> for i32

§

impl From<NativeEndian<i64>> for i64

§

impl From<NativeEndian<i128>> for i128

§

impl From<NativeEndian<u16>> for u16

§

impl From<NativeEndian<u32>> for u32

§

impl From<NativeEndian<u64>> for u64

§

impl From<NativeEndian<u128>> for u128

§

impl From<NativeEndian<NonZeroI16>> for NonZeroI16

§

impl From<NativeEndian<NonZeroI32>> for NonZeroI32

§

impl From<NativeEndian<NonZeroI64>> for NonZeroI64

§

impl From<NativeEndian<NonZeroI128>> for NonZeroI128

§

impl From<NativeEndian<NonZeroU16>> for NonZeroU16

§

impl From<NativeEndian<NonZeroU32>> for NonZeroU32

§

impl From<NativeEndian<NonZeroU64>> for NonZeroU64

§

impl From<NativeEndian<NonZeroU128>> for NonZeroU128

source§

impl From<Utf8Error> for CStrCheckError

source§

impl From<Utf8Error> for StrCheckError

1.17.0 · source§

impl From<[u8; 4]> for IpAddr

1.9.0 · source§

impl From<[u8; 4]> for Ipv4Addr

1.17.0 · source§

impl From<[u8; 16]> for IpAddr

source§

impl From<[u8; 16]> for V128

1.9.0 · source§

impl From<[u8; 16]> for Ipv6Addr

1.17.0 · source§

impl From<[u16; 8]> for IpAddr

1.16.0 · source§

impl From<[u16; 8]> for Ipv6Addr

§

impl<'a> From<&'a char> for BigEndian<char>

§

impl<'a> From<&'a char> for LittleEndian<char>

§

impl<'a> From<&'a char> for NativeEndian<char>

§

impl<'a> From<&'a f32> for BigEndian<f32>

§

impl<'a> From<&'a f32> for LittleEndian<f32>

§

impl<'a> From<&'a f32> for NativeEndian<f32>

§

impl<'a> From<&'a f64> for BigEndian<f64>

§

impl<'a> From<&'a f64> for LittleEndian<f64>

§

impl<'a> From<&'a f64> for NativeEndian<f64>

§

impl<'a> From<&'a i16> for BigEndian<i16>

§

impl<'a> From<&'a i16> for LittleEndian<i16>

§

impl<'a> From<&'a i16> for NativeEndian<i16>

§

impl<'a> From<&'a i32> for BigEndian<i32>

§

impl<'a> From<&'a i32> for LittleEndian<i32>

§

impl<'a> From<&'a i32> for NativeEndian<i32>

§

impl<'a> From<&'a i64> for BigEndian<i64>

§

impl<'a> From<&'a i64> for LittleEndian<i64>

§

impl<'a> From<&'a i64> for NativeEndian<i64>

§

impl<'a> From<&'a i128> for BigEndian<i128>

§

impl<'a> From<&'a i128> for LittleEndian<i128>

§

impl<'a> From<&'a i128> for NativeEndian<i128>

source§

impl<'a> From<&'a str> for Cow<'a, str>

§

impl<'a> From<&'a u16> for BigEndian<u16>

§

impl<'a> From<&'a u16> for LittleEndian<u16>

§

impl<'a> From<&'a u16> for NativeEndian<u16>

§

impl<'a> From<&'a u32> for BigEndian<u32>

§

impl<'a> From<&'a u32> for LittleEndian<u32>

§

impl<'a> From<&'a u32> for NativeEndian<u32>

§

impl<'a> From<&'a u64> for BigEndian<u64>

§

impl<'a> From<&'a u64> for LittleEndian<u64>

§

impl<'a> From<&'a u64> for NativeEndian<u64>

§

impl<'a> From<&'a u128> for BigEndian<u128>

§

impl<'a> From<&'a u128> for LittleEndian<u128>

§

impl<'a> From<&'a u128> for NativeEndian<u128>

1.28.0 · source§

impl<'a> From<&'a String> for Cow<'a, str>

1.28.0 · source§

impl<'a> From<&'a CString> for Cow<'a, CStr>

1.28.0 · source§

impl<'a> From<&'a CStr> for Cow<'a, CStr>

§

impl<'a> From<&'a NonZeroI16> for BigEndian<NonZeroI16>

§

impl<'a> From<&'a NonZeroI16> for LittleEndian<NonZeroI16>

§

impl<'a> From<&'a NonZeroI16> for NativeEndian<NonZeroI16>

§

impl<'a> From<&'a NonZeroI32> for BigEndian<NonZeroI32>

§

impl<'a> From<&'a NonZeroI32> for LittleEndian<NonZeroI32>

§

impl<'a> From<&'a NonZeroI32> for NativeEndian<NonZeroI32>

§

impl<'a> From<&'a NonZeroI64> for BigEndian<NonZeroI64>

§

impl<'a> From<&'a NonZeroI64> for LittleEndian<NonZeroI64>

§

impl<'a> From<&'a NonZeroI64> for NativeEndian<NonZeroI64>

§

impl<'a> From<&'a NonZeroI128> for BigEndian<NonZeroI128>

§

impl<'a> From<&'a NonZeroI128> for LittleEndian<NonZeroI128>

§

impl<'a> From<&'a NonZeroI128> for NativeEndian<NonZeroI128>

§

impl<'a> From<&'a NonZeroU16> for BigEndian<NonZeroU16>

§

impl<'a> From<&'a NonZeroU16> for LittleEndian<NonZeroU16>

§

impl<'a> From<&'a NonZeroU16> for NativeEndian<NonZeroU16>

§

impl<'a> From<&'a NonZeroU32> for BigEndian<NonZeroU32>

§

impl<'a> From<&'a NonZeroU32> for LittleEndian<NonZeroU32>

§

impl<'a> From<&'a NonZeroU32> for NativeEndian<NonZeroU32>

§

impl<'a> From<&'a NonZeroU64> for BigEndian<NonZeroU64>

§

impl<'a> From<&'a NonZeroU64> for LittleEndian<NonZeroU64>

§

impl<'a> From<&'a NonZeroU64> for NativeEndian<NonZeroU64>

§

impl<'a> From<&'a NonZeroU128> for BigEndian<NonZeroU128>

§

impl<'a> From<&'a NonZeroU128> for LittleEndian<NonZeroU128>

§

impl<'a> From<&'a NonZeroU128> for NativeEndian<NonZeroU128>

1.28.0 · source§

impl<'a> From<&'a OsStr> for Cow<'a, OsStr>

1.28.0 · source§

impl<'a> From<&'a OsString> for Cow<'a, OsStr>

1.6.0 · source§

impl<'a> From<&'a Path> for Cow<'a, Path>

1.28.0 · source§

impl<'a> From<&'a PathBuf> for Cow<'a, Path>

§

impl<'a> From<&'a BigEndian<char>> for char

§

impl<'a> From<&'a BigEndian<f32>> for f32

§

impl<'a> From<&'a BigEndian<f64>> for f64

§

impl<'a> From<&'a BigEndian<i16>> for i16

§

impl<'a> From<&'a BigEndian<i32>> for i32

§

impl<'a> From<&'a BigEndian<i64>> for i64

§

impl<'a> From<&'a BigEndian<i128>> for i128

§

impl<'a> From<&'a BigEndian<u16>> for u16

§

impl<'a> From<&'a BigEndian<u32>> for u32

§

impl<'a> From<&'a BigEndian<u64>> for u64

§

impl<'a> From<&'a BigEndian<u128>> for u128

§

impl<'a> From<&'a BigEndian<NonZeroI16>> for NonZeroI16

§

impl<'a> From<&'a BigEndian<NonZeroI32>> for NonZeroI32

§

impl<'a> From<&'a BigEndian<NonZeroI64>> for NonZeroI64

§

impl<'a> From<&'a BigEndian<NonZeroI128>> for NonZeroI128

§

impl<'a> From<&'a BigEndian<NonZeroU16>> for NonZeroU16

§

impl<'a> From<&'a BigEndian<NonZeroU32>> for NonZeroU32

§

impl<'a> From<&'a BigEndian<NonZeroU64>> for NonZeroU64

§

impl<'a> From<&'a BigEndian<NonZeroU128>> for NonZeroU128

§

impl<'a> From<&'a LittleEndian<char>> for char

§

impl<'a> From<&'a LittleEndian<f32>> for f32

§

impl<'a> From<&'a LittleEndian<f64>> for f64

§

impl<'a> From<&'a LittleEndian<i16>> for i16

§

impl<'a> From<&'a LittleEndian<i32>> for i32

§

impl<'a> From<&'a LittleEndian<i64>> for i64

§

impl<'a> From<&'a LittleEndian<i128>> for i128

§

impl<'a> From<&'a LittleEndian<u16>> for u16

§

impl<'a> From<&'a LittleEndian<u32>> for u32

§

impl<'a> From<&'a LittleEndian<u64>> for u64

§

impl<'a> From<&'a LittleEndian<u128>> for u128

§

impl<'a> From<&'a LittleEndian<NonZeroI16>> for NonZeroI16

§

impl<'a> From<&'a LittleEndian<NonZeroI32>> for NonZeroI32

§

impl<'a> From<&'a LittleEndian<NonZeroI64>> for NonZeroI64

§

impl<'a> From<&'a LittleEndian<NonZeroI128>> for NonZeroI128

§

impl<'a> From<&'a LittleEndian<NonZeroU16>> for NonZeroU16

§

impl<'a> From<&'a LittleEndian<NonZeroU32>> for NonZeroU32

§

impl<'a> From<&'a LittleEndian<NonZeroU64>> for NonZeroU64

§

impl<'a> From<&'a LittleEndian<NonZeroU128>> for NonZeroU128

§

impl<'a> From<&'a NativeEndian<char>> for char

§

impl<'a> From<&'a NativeEndian<f32>> for f32

§

impl<'a> From<&'a NativeEndian<f64>> for f64

§

impl<'a> From<&'a NativeEndian<i16>> for i16

§

impl<'a> From<&'a NativeEndian<i32>> for i32

§

impl<'a> From<&'a NativeEndian<i64>> for i64

§

impl<'a> From<&'a NativeEndian<i128>> for i128

§

impl<'a> From<&'a NativeEndian<u16>> for u16

§

impl<'a> From<&'a NativeEndian<u32>> for u32

§

impl<'a> From<&'a NativeEndian<u64>> for u64

§

impl<'a> From<&'a NativeEndian<u128>> for u128

§

impl<'a> From<&'a NativeEndian<NonZeroI16>> for NonZeroI16

§

impl<'a> From<&'a NativeEndian<NonZeroI32>> for NonZeroI32

§

impl<'a> From<&'a NativeEndian<NonZeroI64>> for NonZeroI64

§

impl<'a> From<&'a NativeEndian<NonZeroI128>> for NonZeroI128

§

impl<'a> From<&'a NativeEndian<NonZeroU16>> for NonZeroU16

§

impl<'a> From<&'a NativeEndian<NonZeroU32>> for NonZeroU32

§

impl<'a> From<&'a NativeEndian<NonZeroU64>> for NonZeroU64

§

impl<'a> From<&'a NativeEndian<NonZeroU128>> for NonZeroU128

source§

impl<'a> From<&str> for Box<dyn Error + Sync + Send + 'a, Global>

1.22.0 · source§

impl<'a> From<Cow<'a, str>> for Box<dyn Error + 'static, Global>

1.14.0 · source§

impl<'a> From<Cow<'a, str>> for String

1.28.0 · source§

impl<'a> From<Cow<'a, CStr>> for CString

1.28.0 · source§

impl<'a> From<Cow<'a, OsStr>> for OsString

1.28.0 · source§

impl<'a> From<Cow<'a, Path>> for PathBuf

source§

impl<'a> From<String> for Cow<'a, str>

1.28.0 · source§

impl<'a> From<CString> for Cow<'a, CStr>

1.28.0 · source§

impl<'a> From<OsString> for Cow<'a, OsStr>

1.6.0 · source§

impl<'a> From<PathBuf> for Cow<'a, Path>

1.22.0 · source§

impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + Sync + Send + 'a, Global>

1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Rc<B>where B: ToOwned + ?Sized, Rc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>where B: ToOwned + ?Sized, Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

impl<'a, E> From<E> for Box<dyn Error + 'a, Global>where E: Error + 'a,

source§

impl<'a, E> From<E> for Box<dyn Error + Sync + Send + 'a, Global>where E: Error + Send + Sync + 'a,

1.30.0 · source§

impl<'a, T> From<&'a Option<T>> for Option<&'a T>

1.8.0 · source§

impl<'a, T> From<&'a [T]> for Cow<'a, [T]>where T: Clone,

1.28.0 · source§

impl<'a, T> From<&'a Vec<T, Global>> for Cow<'a, [T]>where T: Clone,

1.30.0 · source§

impl<'a, T> From<&'a mut Option<T>> for Option<&'a mut T>

1.14.0 · source§

impl<'a, T> From<Cow<'a, [T]>> for Vec<T, Global>where [T]: ToOwned<Owned = Vec<T, Global>>,

1.8.0 · source§

impl<'a, T> From<Vec<T, Global>> for Cow<'a, [T]>where T: Clone,

source§

impl<'data> From<&'data mut [u8]> for BorrowedBuf<'data>

Create a new BorrowedBuf from a fully initialized slice.

source§

impl<'data> From<&'data mut [MaybeUninit<u8>]> for BorrowedBuf<'data>

Create a new BorrowedBuf from an uninitialized buffer.

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

source§

impl<'input, Endian> From<EndianSlice<'input, Endian>> for &'input [u8]where Endian: Endianity,

1.19.0 · source§

impl<A> From<Box<str, A>> for Box<[u8], A>where A: Allocator,

source§

impl<C> From<Infallible> for HashIndexError<C>

source§

impl<C> From<SliceCheckError<Infallible>> for HashIndexError<C>

source§

impl<C> From<LayoutError> for HashIndexError<C>

source§

impl<E> From<E> for Report<E>where E: Error,

1.17.0 · source§

impl<I> From<(I, u16)> for SocketAddrwhere I: Into<IpAddr>,

§

impl<K, V, A, const N: usize> From<[(K, V); N]> for HashMap<K, V, RandomState, A>where K: Eq + Hash, A: Default + Allocator + Clone,

source§

impl<K, V, C> From<Infallible> for ArchivedBTreeMapError<K, V, C>

source§

impl<K, V, C> From<Infallible> for HashMapError<K, V, C>

source§

impl<K, V, C> From<Infallible> for IndexMapError<K, V, C>

source§

impl<K, V, C> From<SliceCheckError<Infallible>> for HashMapError<K, V, C>

source§

impl<K, V, C> From<SliceCheckError<Infallible>> for IndexMapError<K, V, C>

source§

impl<K, V, C> From<SliceCheckError<ArchivedEntryError<K, V>>> for HashMapError<K, V, C>

source§

impl<K, V, C> From<SliceCheckError<ArchivedEntryError<K, V>>> for IndexMapError<K, V, C>

source§

impl<K, V, C> From<HashIndexError<C>> for HashMapError<K, V, C>

source§

impl<K, V, C> From<HashIndexError<C>> for IndexMapError<K, V, C>

source§

impl<K, V, C> From<LayoutError> for HashMapError<K, V, C>

source§

impl<K, V, C> From<LayoutError> for IndexMapError<K, V, C>

1.56.0 · source§

impl<K, V, const N: usize> From<[(K, V); N]> for BTreeMap<K, V, Global>where K: Ord,

1.56.0 · source§

impl<K, V, const N: usize> From<[(K, V); N]> for std::collections::hash::map::HashMap<K, V, RandomState>where K: Eq + Hash,

source§

impl<K, V, const N: usize> From<[(K, V); N]> for IndexMap<K, V, RandomState>where K: Hash + Eq,

1.17.0 · source§

impl<T> From<&[T]> for Box<[T], Global>where T: Clone,

1.21.0 · source§

impl<T> From<&[T]> for Rc<[T]>where T: Clone,

1.21.0 · source§

impl<T> From<&[T]> for Arc<[T]>where T: Clone,

source§

impl<T> From<&[T]> for Vec<T, Global>where T: Clone,

1.19.0 · source§

impl<T> From<&mut [T]> for Vec<T, Global>where T: Clone,

1.45.0 · source§

impl<T> From<Cow<'_, [T]>> for Box<[T], Global>where T: Clone,

1.34.0 · source§

impl<T> From<!> for T

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 · source§

impl<T> From<*mut T> for AtomicPtr<T>

1.25.0 · source§

impl<T> From<&T> for NonNull<T>where T: ?Sized,

source§

impl<T> From<&T> for OsStringwhere T: AsRef<OsStr> + ?Sized,

source§

impl<T> From<&T> for PathBufwhere T: AsRef<OsStr> + ?Sized,

1.25.0 · source§

impl<T> From<&mut T> for NonNull<T>where T: ?Sized,

1.21.0 · source§

impl<T> From<Box<T, Global>> for Rc<T>where T: ?Sized,

1.21.0 · source§

impl<T> From<Box<T, Global>> for Arc<T>where T: ?Sized,

1.24.0 · source§

impl<T> From<SendError<T>> for TrySendError<T>

source§

impl<T> From<PoisonError<T>> for TryLockError<T>

1.21.0 · source§

impl<T> From<Vec<T, Global>> for Rc<[T]>

1.21.0 · source§

impl<T> From<Vec<T, Global>> for Arc<[T]>

1.5.0 · source§

impl<T> From<Vec<T, Global>> for BinaryHeap<T>where T: Ord,

1.5.0 · source§

impl<T> From<BinaryHeap<T>> for Vec<T, Global>

1.12.0 · source§

impl<T> From<T> for Option<T>

1.36.0 · source§

impl<T> From<T> for Poll<T>

source§

impl<T> From<T> for ArchivedOption<T>

1.6.0 · source§

impl<T> From<T> for Box<T, Global>

1.12.0 · source§

impl<T> From<T> for Cell<T>

1.70.0 · source§

impl<T> From<T> for wasmer_types::lib::std::cell::OnceCell<T>

1.12.0 · source§

impl<T> From<T> for RefCell<T>

source§

impl<T> From<T> for SyncUnsafeCell<T>

1.12.0 · source§

impl<T> From<T> for UnsafeCell<T>

1.6.0 · source§

impl<T> From<T> for Rc<T>

1.6.0 · source§

impl<T> From<T> for Arc<T>

source§

impl<T> From<T> for Exclusive<T>

1.24.0 · source§

impl<T> From<T> for Mutex<T>

1.70.0 · source§

impl<T> From<T> for OnceLock<T>

1.24.0 · source§

impl<T> From<T> for RwLock<T>

source§

impl<T> From<T> for EnumSet<T>where T: EnumSetType,

source§

impl<T> From<T> for ScratchTracker<T>

§

impl<T> From<T> for OnceCell<T>

source§

impl<T> From<T> for T

1.18.0 · source§

impl<T, A> From<Box<[T], A>> for Vec<T, A>where A: Allocator,

1.33.0 · source§

impl<T, A> From<Box<T, A>> for Pin<Box<T, A>>where A: Allocator + 'static, T: ?Sized,

1.20.0 · source§

impl<T, A> From<Vec<T, A>> for Box<[T], A>where A: Allocator,

1.10.0 · source§

impl<T, A> From<Vec<T, A>> for VecDeque<T, A>where A: Allocator,

1.10.0 · source§

impl<T, A> From<VecDeque<T, A>> for Vec<T, A>where A: Allocator,

§

impl<T, A, const N: usize> From<[T; N]> for HashSet<T, RandomState, A>where T: Eq + Hash, A: Default + Allocator + Clone,

source§

impl<T, R, C> From<Infallible> for WeakPointerError<T, R, C>

§

impl<T, S, A> From<HashMap<T, (), S, A>> for HashSet<T, S, A>where A: Allocator + Clone,

source§

impl<T, const LANES: usize> From<[T; LANES]> for Simd<T, LANES>where LaneCount<LANES>: SupportedLaneCount, T: SimdElement,

source§

impl<T, const LANES: usize> From<Mask<T, LANES>> for [bool; LANES]where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

impl<T, const LANES: usize> From<Simd<T, LANES>> for [T; LANES]where LaneCount<LANES>: SupportedLaneCount, T: SimdElement,

source§

impl<T, const LANES: usize> From<Mask<T, LANES>> for Simd<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

source§

impl<T, const LANES: usize> From<[bool; LANES]> for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

1.45.0 · source§

impl<T, const N: usize> From<[T; N]> for Box<[T], Global>

1.44.0 · source§

impl<T, const N: usize> From<[T; N]> for Vec<T, Global>

1.56.0 · source§

impl<T, const N: usize> From<[T; N]> for BinaryHeap<T>where T: Ord,

1.56.0 · source§

impl<T, const N: usize> From<[T; N]> for BTreeSet<T, Global>where T: Ord,

1.56.0 · source§

impl<T, const N: usize> From<[T; N]> for LinkedList<T, Global>

1.56.0 · source§

impl<T, const N: usize> From<[T; N]> for VecDeque<T, Global>

1.56.0 · source§

impl<T, const N: usize> From<[T; N]> for std::collections::hash::set::HashSet<T, RandomState>where T: Eq + Hash,

source§

impl<T, const N: usize> From<[T; N]> for IndexSet<T, RandomState>where T: Eq + Hash,

source§

impl<T: ReservedValue> From<Option<T>> for PackedOption<T>

source§

impl<T: ReservedValue> From<PackedOption<T>> for Option<T>

source§

impl<T: ReservedValue> From<T> for PackedOption<T>

1.51.0 · source§

impl<W> From<Arc<W>> for RawWakerwhere W: Wake + Send + Sync + 'static,

1.51.0 · source§

impl<W> From<Arc<W>> for Wakerwhere W: Wake + Send + Sync + 'static,

source§

impl<W> From<IntoInnerError<W>> for std::io::error::Error

source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i8, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i16, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i32, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<i64, LANES>> for Mask<isize, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i8, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i16, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i32, LANES>where LaneCount<LANES>: SupportedLaneCount,

source§

impl<const LANES: usize> From<Mask<isize, LANES>> for Mask<i64, LANES>where LaneCount<LANES>: SupportedLaneCount,