Trait From

1.0.0 (const: unstable) · 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 From when specifying trait bounds on a generic function to ensure that types that only implement Into can be used as well.

The From trait 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>. From simplifies error handling by allowing a function to return a single error type that encapsulates 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

§When to implement From

While there’s no technical restrictions on which conversions can be done using a From implementation, the general expectation is that the conversions should typically be restricted as follows:

  • The conversion is infallible: if the conversion can fail, use TryFrom instead; don’t provide a From impl that panics.

  • The conversion is lossless: semantically, it should not lose or discard information. For example, i32: From<u16> exists, where the original value can be recovered using u16: TryFrom<i32>. And String: From<&str> exists, where you can get something equivalent to the original value via Deref. But From cannot be used to convert from u32 to u16, since that cannot succeed in a lossless way. (There’s some wiggle room here for information not considered semantically relevant. For example, Box<[T]>: From<Vec<T>> exists even though it might not preserve capacity, like how two vectors can be equal despite differing capacities.)

  • The conversion is value-preserving: the conceptual kind and meaning of the resulting value is the same, even though the Rust type and technical representation might be different. For example -1_i8 as u8 is lossless, since as casting back can recover the original value, but that conversion is not available via From because -1 and 255 are different conceptual values (despite being identical bit patterns technically). But f32: From<i16> is available because 1_i16 and 1.0_f32 are conceptually the same real number (despite having very different bit patterns technically). String: From<char> is available because they’re both text, but String: From<u32> is not available, since 1 (a number) and "1" (text) are too different. (Converting values to text is instead covered by the Display trait.)

  • The conversion is obvious: it’s the only reasonable conversion between the two types. Otherwise it’s better to have it be a named method or constructor, like how str::as_bytes is a method and how integers have methods like u32::from_ne_bytes, u32::from_le_bytes, and u32::from_be_bytes, none of which are From implementations. Whereas there’s only one reasonable way to wrap an Ipv6Addr into an IpAddr, thus IpAddr: From<Ipv6Addr> exists.

§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 with From::from.

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§

1.0.0 · Source

fn from(value: T) -> Self

Converts to this type from the input type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl From<&'static str> for Bytes

Source§

impl From<&'static [u8]> for Bytes

Source§

impl From<&TimecatError> for TimecatError

Source§

impl From<&Endian> for String

Source§

impl From<&Styles> for Style

Source§

impl From<&str> for TimecatError

Source§

impl From<&str> for Color

Source§

impl From<&str> for Value

1.17.0 · Source§

impl From<&str> for Box<str>

1.21.0 · Source§

impl From<&str> for Rc<str>

1.0.0 · Source§

impl From<&str> for String

1.0.0 · Source§

impl From<&str> for Vec<u8>

1.21.0 · Source§

impl From<&str> for Arc<str>

Source§

impl From<&u64> for BitBoard

Source§

impl From<&ChessPosition> for Board

Source§

impl From<&ChessPosition> for ChessPositionBuilder

1.35.0 · Source§

impl From<&String> for String

1.17.0 · Source§

impl From<&CStr> for Box<CStr>

1.7.0 · Source§

impl From<&CStr> for CString

1.24.0 · Source§

impl From<&CStr> for Rc<CStr>

1.24.0 · Source§

impl From<&CStr> for Arc<CStr>

1.17.0 · Source§

impl From<&OsStr> for Box<OsStr>

1.24.0 · Source§

impl From<&OsStr> for Rc<OsStr>

1.24.0 · Source§

impl From<&OsStr> for Arc<OsStr>

Source§

impl From<&Number> for f64

1.17.0 · Source§

impl From<&Path> for Box<Path>

1.24.0 · Source§

impl From<&Path> for Rc<Path>

1.24.0 · Source§

impl From<&Path> for Arc<Path>

Source§

impl From<&BitBoard> for u64

Source§

impl From<&Move> for ValidOrNullMove

1.84.0 · Source§

impl From<&mut str> for Box<str>

1.84.0 · Source§

impl From<&mut str> for Rc<str>

1.44.0 · Source§

impl From<&mut str> for String

1.84.0 · Source§

impl From<&mut str> for Arc<str>

1.84.0 · Source§

impl From<&mut CStr> for Box<CStr>

1.84.0 · Source§

impl From<&mut CStr> for Rc<CStr>

1.84.0 · Source§

impl From<&mut CStr> for Arc<CStr>

1.84.0 · Source§

impl From<&mut OsStr> for Box<OsStr>

1.84.0 · Source§

impl From<&mut OsStr> for Rc<OsStr>

1.84.0 · Source§

impl From<&mut OsStr> for Arc<OsStr>

1.84.0 · Source§

impl From<&mut Path> for Box<Path>

1.84.0 · Source§

impl From<&mut Path> for Rc<Path>

1.84.0 · Source§

impl From<&mut Path> for Arc<Path>

Source§

impl From<(u8, u8, u8)> for CustomColor

Source§

impl From<Pyo3Error> for PyErr

Source§

impl From<TimecatError> for String

Source§

impl From<TimecatError> for PyErr

1.89.0 · Source§

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

1.45.0 · Source§

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

1.45.0 · Source§

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

1.45.0 · Source§

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

1.45.0 · Source§

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

Source§

impl From<TryReserveErrorKind> for TryReserveError

Source§

impl From<AsciiChar> for char

Source§

impl From<AsciiChar> for u8

Source§

impl From<AsciiChar> for u16

Source§

impl From<AsciiChar> for u32

Source§

impl From<AsciiChar> for u64

Source§

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

Source§

impl From<Infallible> for http::error::Error

Source§

impl From<Infallible> for PyErr

Source§

impl From<Option<&Move>> for ValidOrNullMove

Source§

impl From<Option<Move>> for ValidOrNullMove

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<Styles> for Style

Source§

impl From<Error> for HistoryError

Source§

impl From<BinaryType> for JsValue

Source§

impl From<ReferrerPolicy> for JsValue

Source§

impl From<RequestCache> for JsValue

Source§

impl From<RequestCredentials> for JsValue

Source§

impl From<RequestMode> for JsValue

Source§

impl From<RequestRedirect> for JsValue

Source§

impl From<ResponseType> for JsValue

Source§

impl From<UserCommand> for timecat::constants::types::Result<Vec<UserCommand>>

Source§

impl From<GoCommand> for SearchConfig

Source§

impl From<bool> for Value

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

Source§

impl From<bool> for Boolean

Source§

impl From<bool> for JsValue

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.46.0 · Source§

impl From<char> for String

Source§

impl From<char> for JsString

1.6.0 (const: unstable) · Source§

impl From<f16> for f64

1.6.0 (const: unstable) · Source§

impl From<f16> for f128

Source§

impl From<f32> for Value

1.6.0 (const: unstable) · Source§

impl From<f32> for f64

1.6.0 (const: unstable) · Source§

impl From<f32> for f128

Source§

impl From<f32> for js_sys::Number

Source§

impl From<f32> for JsValue

Source§

impl From<f64> for Value

1.6.0 (const: unstable) · Source§

impl From<f64> for f128

Source§

impl From<f64> for js_sys::Number

Source§

impl From<f64> for JsValue

Source§

impl From<i8> for Value

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

Source§

impl From<i8> for BigInt

Source§

impl From<i8> for js_sys::Number

Source§

impl From<i8> for serde_json::number::Number

Source§

impl From<i8> for JsValue

Source§

impl From<i16> for Value

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

Source§

impl From<i16> for HeaderValue

Source§

impl From<i16> for BigInt

Source§

impl From<i16> for js_sys::Number

Source§

impl From<i16> for serde_json::number::Number

Source§

impl From<i16> for JsValue

Source§

impl From<i32> for Value

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

Source§

impl From<i32> for HeaderValue

Source§

impl From<i32> for BigInt

Source§

impl From<i32> for js_sys::Number

Source§

impl From<i32> for serde_json::number::Number

Source§

impl From<i32> for JsValue

Source§

impl From<i64> for Value

1.26.0 (const: unstable) · Source§

impl From<i64> for i128

1.34.0 (const: unstable) · Source§

impl From<i64> for AtomicI64

Source§

impl From<i64> for HeaderValue

Source§

impl From<i64> for BigInt

Source§

impl From<i64> for serde_json::number::Number

Source§

impl From<i64> for JsValue

Source§

impl From<i128> for BigInt

Source§

impl From<i128> for JsValue

Source§

impl From<isize> for Value

1.23.0 (const: unstable) · Source§

impl From<isize> for AtomicIsize

Source§

impl From<isize> for HeaderValue

Source§

impl From<isize> for BigInt

Source§

impl From<isize> for serde_json::number::Number

Source§

impl From<isize> for JsValue

1.34.0 (const: unstable) · Source§

impl From<!> for Infallible

Source§

impl From<!> for TryFromIntError

Source§

impl From<u8> for Value

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.61.0 · Source§

impl From<u8> for ExitCode

Source§

impl From<u8> for BigInt

Source§

impl From<u8> for js_sys::Number

Source§

impl From<u8> for serde_json::number::Number

Source§

impl From<u8> for JsValue

Source§

impl From<u16> for Value

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

Source§

impl From<u16> for HeaderValue

Source§

impl From<u16> for BigInt

Source§

impl From<u16> for js_sys::Number

Source§

impl From<u16> for serde_json::number::Number

Source§

impl From<u16> for JsValue

Source§

impl From<u32> for Value

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

Source§

impl From<u32> for HeaderValue

Source§

impl From<u32> for BigInt

Source§

impl From<u32> for js_sys::Number

Source§

impl From<u32> for serde_json::number::Number

Source§

impl From<u32> for JsValue

Source§

impl From<u64> for Value

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

Source§

impl From<u64> for HeaderValue

Source§

impl From<u64> for BigInt

Source§

impl From<u64> for serde_json::number::Number

Source§

impl From<u64> for JsValue

Source§

impl From<u64> for BitBoard

1.26.0 (const: unstable) · Source§

impl From<u128> for Ipv6Addr

Source§

impl From<u128> for BigInt

Source§

impl From<u128> for JsValue

Source§

impl From<()> for Value

Source§

impl From<usize> for Value

Source§

impl From<usize> for HeaderValue

Source§

impl From<usize> for BigInt

Source§

impl From<usize> for serde_json::number::Number

Source§

impl From<usize> for JsValue

1.23.0 (const: unstable) · Source§

impl From<usize> for AtomicUsize

Source§

impl From<ChessPosition> for Board

Source§

impl From<ChessPosition> for ChessPositionBuilder

1.63.0 · Source§

impl From<File> for OwnedFd

1.20.0 · Source§

impl From<File> for Stdio

1.18.0 · Source§

impl From<Box<str>> for String

Source§

impl From<Box<ByteStr>> for Box<[u8]>

1.18.0 · Source§

impl From<Box<CStr>> for CString

1.18.0 · Source§

impl From<Box<OsStr>> for OsString

1.18.0 · Source§

impl From<Box<Path>> for PathBuf

Source§

impl From<Box<[f32]>> for JsValue

Source§

impl From<Box<[f64]>> for JsValue

Source§

impl From<Box<[i8]>> for JsValue

Source§

impl From<Box<[i16]>> for JsValue

Source§

impl From<Box<[i32]>> for JsValue

Source§

impl From<Box<[i64]>> for JsValue

Source§

impl From<Box<[u8]>> for Box<ByteStr>

Source§

impl From<Box<[u8]>> for Bytes

Source§

impl From<Box<[u8]>> for JsValue

Source§

impl From<Box<[u16]>> for JsValue

Source§

impl From<Box<[u32]>> for JsValue

Source§

impl From<Box<[u64]>> for JsValue

Source§

impl From<ByteString> for Vec<u8>

1.78.0 · Source§

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

1.20.0 · Source§

impl From<CString> for Box<CStr>

1.24.0 · Source§

impl From<CString> for Rc<CStr>

1.7.0 · Source§

impl From<CString> for Vec<u8>

1.24.0 · Source§

impl From<CString> for Arc<CStr>

Source§

impl From<IntoStringError> for PyErr

1.0.0 · Source§

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

Source§

impl From<NulError> for PyErr

1.62.0 · Source§

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

Source§

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

Source§

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

Source§

impl From<FromUtf8Error> for PyErr

Source§

impl From<FromUtf16Error> for PyErr

Source§

impl From<String> for TimecatError

Source§

impl From<String> for Color

Source§

impl From<String> for Value

1.20.0 · Source§

impl From<String> for Box<str>

1.21.0 · Source§

impl From<String> for Rc<str>

1.14.0 · Source§

impl From<String> for Vec<u8>

1.0.0 · Source§

impl From<String> for OsString

Source§

impl From<String> for Bytes

Source§

impl From<String> for ColoredString

Source§

impl From<String> for JsString

Source§

impl From<String> for JsValue

1.21.0 · Source§

impl From<String> for Arc<str>

1.0.0 · Source§

impl From<String> for PathBuf

Source§

impl From<Vec<u8>> for Bytes

1.43.0 · Source§

impl From<Vec<NonZero<u8>>> for CString

Source§

impl From<Vec<NonZero<u8>>> for NullString

Source§

impl From<Vec<NonZero<u16>>> for NullWideString

Source§

impl From<LayoutError> for TryReserveErrorKind

Source§

impl From<TryFromSliceError> for TimecatError

Source§

impl From<TryFromSliceError> for PyErr

Source§

impl From<DecodeUtf16Error> for PyErr

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 (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

Source§

impl From<AddrParseError> for PyErr

1.16.0 (const: unstable) · Source§

impl From<SocketAddrV4> for SocketAddr

1.16.0 (const: unstable) · Source§

impl From<SocketAddrV6> for SocketAddr

Source§

impl From<ParseFloatError> for PyErr

Source§

impl From<TryFromIntError> for PyErr

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>

Source§

impl From<Alignment> for usize

Source§

impl From<Alignment> for NonZero<usize>

Source§

impl From<Utf8Error> for PyErr

1.20.0 · Source§

impl From<OsString> for Box<OsStr>

1.24.0 · Source§

impl From<OsString> for Rc<OsStr>

1.24.0 · Source§

impl From<OsString> for Arc<OsStr>

1.0.0 · Source§

impl From<OsString> for PathBuf

Source§

impl From<Error> for TimecatError

Source§

impl From<Error> for binread::error::Error

Source§

impl From<Error> for Box<ErrorKind>

Source§

impl From<Error> for PyErr

Create PyErr from io::Error (OSError except if the io::Error is wrapping a Python exception, in this case the exception is returned)

1.87.0 · Source§

impl From<PipeReader> for OwnedFd

1.87.0 · Source§

impl From<PipeReader> for Stdio

1.87.0 · Source§

impl From<PipeWriter> for OwnedFd

1.87.0 · Source§

impl From<PipeWriter> for Stdio

1.74.0 · Source§

impl From<Stderr> for Stdio

1.74.0 · Source§

impl From<Stdout> for Stdio

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 timecat::fs::File

1.87.0 · Source§

impl From<OwnedFd> for PipeReader

1.87.0 · Source§

impl From<OwnedFd> for PipeWriter

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.74.0 · Source§

impl From<OwnedFd> for ChildStderr

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§

impl From<OwnedFd> for ChildStdin

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§

impl From<OwnedFd> for ChildStdout

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§

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.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<ExitStatusError> for ExitStatus

1.24.0 · Source§

impl From<RecvError> for RecvTimeoutError

1.24.0 · Source§

impl From<RecvError> for TryRecvError

Source§

impl From<NullString> for Vec<u8>

Source§

impl From<NullWideString> for Vec<u16>

Source§

impl From<Bytes> for Vec<u8>

Source§

impl From<Bytes> for BytesMut

Source§

impl From<BytesMut> for Vec<u8>

Source§

impl From<BytesMut> for Bytes

Source§

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

Source§

impl From<ColoredString> for Box<dyn Error>

Source§

impl From<Blob> for ObjectUrl

Source§

impl From<Blob> for JsValue

Source§

impl From<Blob> for web_sys::features::gen_Blob::Blob

Source§

impl From<File> for gloo_file::blob::Blob

Source§

impl From<File> for ObjectUrl

Source§

impl From<BrowserHistory> for AnyHistory

Source§

impl From<HashHistory> for AnyHistory

Source§

impl From<MemoryHistory> for AnyHistory

Source§

impl From<Request> for web_sys::features::gen_Request::Request

Source§

impl From<Response> for web_sys::features::gen_Response::Response

Source§

impl From<MaxSizeReached> for http::error::Error

Source§

impl From<HeaderName> for HeaderValue

Source§

impl From<InvalidHeaderName> for http::error::Error

Source§

impl From<InvalidHeaderValue> for http::error::Error

Source§

impl From<InvalidMethod> for http::error::Error

Source§

impl From<InvalidStatusCode> for http::error::Error

Source§

impl From<StatusCode> for u16

Source§

impl From<Authority> for Uri

Convert an Authority into a Uri.

Source§

impl From<PathAndQuery> for Uri

Convert a PathAndQuery into a Uri.

Source§

impl From<InvalidUri> for http::error::Error

Source§

impl From<InvalidUriParts> for http::error::Error

Source§

impl From<Uri> for Parts

Convert a Uri into Parts

Source§

impl From<Collator> for Object

Source§

impl From<Collator> for JsValue

Source§

impl From<DateTimeFormat> for Object

Source§

impl From<DateTimeFormat> for JsValue

Source§

impl From<NumberFormat> for Object

Source§

impl From<NumberFormat> for JsValue

Source§

impl From<PluralRules> for Object

Source§

impl From<PluralRules> for JsValue

Source§

impl From<RelativeTimeFormat> for Object

Source§

impl From<RelativeTimeFormat> for JsValue

Source§

impl From<CompileError> for js_sys::Error

Source§

impl From<CompileError> for JsValue

Source§

impl From<Exception> for Object

Source§

impl From<Exception> for JsValue

Source§

impl From<Global> for Object

Source§

impl From<Global> for JsValue

Source§

impl From<Instance> for Object

Source§

impl From<Instance> for JsValue

Source§

impl From<LinkError> for js_sys::Error

Source§

impl From<LinkError> for JsValue

Source§

impl From<Memory> for Object

Source§

impl From<Memory> for JsValue

Source§

impl From<Module> for Object

Source§

impl From<Module> for JsValue

Source§

impl From<RuntimeError> for js_sys::Error

Source§

impl From<RuntimeError> for JsValue

Source§

impl From<Table> for Object

Source§

impl From<Table> for JsValue

Source§

impl From<Tag> for Object

Source§

impl From<Tag> for JsValue

Source§

impl From<Array> for Object

Source§

impl From<Array> for JsValue

Source§

impl From<ArrayBuffer> for Object

Source§

impl From<ArrayBuffer> for JsValue

Source§

impl From<AsyncIterator> for JsValue

Source§

impl From<BigInt64Array> for Object

Source§

impl From<BigInt64Array> for JsValue

Source§

impl From<BigInt> for Object

Source§

impl From<BigInt> for JsValue

Source§

impl From<BigUint64Array> for Object

Source§

impl From<BigUint64Array> for JsValue

Source§

impl From<Boolean> for bool

Source§

impl From<Boolean> for Object

Source§

impl From<Boolean> for JsValue

Source§

impl From<DataView> for Object

Source§

impl From<DataView> for JsValue

Source§

impl From<Date> for Object

Source§

impl From<Date> for JsValue

Source§

impl From<Error> for gloo_utils::errors::JsError

Source§

impl From<Error> for Object

Source§

impl From<Error> for JsValue

Source§

impl From<EvalError> for js_sys::Error

Source§

impl From<EvalError> for Object

Source§

impl From<EvalError> for JsValue

Source§

impl From<Float32Array> for Object

Source§

impl From<Float32Array> for JsValue

Source§

impl From<Float64Array> for Object

Source§

impl From<Float64Array> for JsValue

Source§

impl From<Function> for Object

Source§

impl From<Function> for JsValue

Source§

impl From<Generator> for Object

Source§

impl From<Generator> for JsValue

Source§

impl From<Int8Array> for Object

Source§

impl From<Int8Array> for JsValue

Source§

impl From<Int16Array> for Object

Source§

impl From<Int16Array> for JsValue

Source§

impl From<Int32Array> for Object

Source§

impl From<Int32Array> for JsValue

Source§

impl From<Iterator> for UncheckedIter

Source§

impl From<Iterator> for JsValue

Source§

impl From<IteratorNext> for Object

Source§

impl From<IteratorNext> for JsValue

Source§

impl From<JsString> for String

Source§

impl From<JsString> for Object

Source§

impl From<JsString> for JsValue

Source§

impl From<Map> for Object

Source§

impl From<Map> for JsValue

Source§

impl From<Number> for f64

Source§

impl From<Number> for Object

Source§

impl From<Number> for JsValue

Source§

impl From<Object> for JsValue

Source§

impl From<Promise> for Object

Source§

impl From<Promise> for JsFuture

Source§

impl From<Promise> for JsValue

Source§

impl From<Proxy> for JsValue

Source§

impl From<RangeError> for js_sys::Error

Source§

impl From<RangeError> for Object

Source§

impl From<RangeError> for JsValue

Source§

impl From<ReferenceError> for js_sys::Error

Source§

impl From<ReferenceError> for Object

Source§

impl From<ReferenceError> for JsValue

Source§

impl From<RegExp> for Object

Source§

impl From<RegExp> for JsValue

Source§

impl From<Set> for Object

Source§

impl From<Set> for JsValue

Source§

impl From<SharedArrayBuffer> for Object

Source§

impl From<SharedArrayBuffer> for JsValue

Source§

impl From<Symbol> for JsValue

Source§

impl From<SyntaxError> for js_sys::Error

Source§

impl From<SyntaxError> for Object

Source§

impl From<SyntaxError> for JsValue

Source§

impl From<TypeError> for js_sys::Error

Source§

impl From<TypeError> for Object

Source§

impl From<TypeError> for JsValue

Source§

impl From<Uint8Array> for Object

Source§

impl From<Uint8Array> for JsValue

Source§

impl From<Uint8ClampedArray> for Object

Source§

impl From<Uint8ClampedArray> for JsValue

Source§

impl From<Uint16Array> for Object

Source§

impl From<Uint16Array> for JsValue

Source§

impl From<Uint32Array> for Object

Source§

impl From<Uint32Array> for JsValue

Source§

impl From<UriError> for js_sys::Error

Source§

impl From<UriError> for Object

Source§

impl From<UriError> for JsValue

Source§

impl From<WeakMap> for Object

Source§

impl From<WeakMap> for JsValue

Source§

impl From<WeakSet> for Object

Source§

impl From<WeakSet> for JsValue

Source§

impl From<DowncastError<'_, '_>> for PyErr

Convert DowncastError to Python TypeError.

Source§

impl From<DowncastIntoError<'_>> for PyErr

Convert DowncastIntoError to Python TypeError.

Source§

impl From<PyBorrowError> for PyErr

Source§

impl From<PyBorrowMutError> for PyErr

Source§

impl From<Error> for JsValue

Source§

impl From<Error> for HistoryError

Source§

impl From<Error> for gloo_net::error::Error

Source§

impl From<Error> for StorageError

Source§

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

Source§

impl From<Map<String, Value>> for Value

Source§

impl From<Number> for Value

Source§

impl From<Clamped<Box<[f32]>>> for JsValue

Source§

impl From<Clamped<Box<[f64]>>> for JsValue

Source§

impl From<Clamped<Box<[i8]>>> for JsValue

Source§

impl From<Clamped<Box<[i16]>>> for JsValue

Source§

impl From<Clamped<Box<[i32]>>> for JsValue

Source§

impl From<Clamped<Box<[i64]>>> for JsValue

Source§

impl From<Clamped<Box<[u8]>>> for JsValue

Source§

impl From<Clamped<Box<[u16]>>> for JsValue

Source§

impl From<Clamped<Box<[u32]>>> for JsValue

Source§

impl From<Clamped<Box<[u64]>>> for JsValue

Source§

impl From<JsError> for JsValue

Source§

impl From<JsValue> for Collator

Source§

impl From<JsValue> for DateTimeFormat

Source§

impl From<JsValue> for NumberFormat

Source§

impl From<JsValue> for PluralRules

Source§

impl From<JsValue> for RelativeTimeFormat

Source§

impl From<JsValue> for CompileError

Source§

impl From<JsValue> for Exception

Source§

impl From<JsValue> for Global

Source§

impl From<JsValue> for Instance

Source§

impl From<JsValue> for LinkError

Source§

impl From<JsValue> for Memory

Source§

impl From<JsValue> for Module

Source§

impl From<JsValue> for RuntimeError

Source§

impl From<JsValue> for Table

Source§

impl From<JsValue> for Tag

Source§

impl From<JsValue> for Array

Source§

impl From<JsValue> for ArrayBuffer

Source§

impl From<JsValue> for AsyncIterator

Source§

impl From<JsValue> for BigInt64Array

Source§

impl From<JsValue> for BigInt

Source§

impl From<JsValue> for BigUint64Array

Source§

impl From<JsValue> for Boolean

Source§

impl From<JsValue> for DataView

Source§

impl From<JsValue> for Date

Source§

impl From<JsValue> for js_sys::Error

Source§

impl From<JsValue> for EvalError

Source§

impl From<JsValue> for Float32Array

Source§

impl From<JsValue> for Float64Array

Source§

impl From<JsValue> for Function

Source§

impl From<JsValue> for Generator

Source§

impl From<JsValue> for Int8Array

Source§

impl From<JsValue> for Int16Array

Source§

impl From<JsValue> for Int32Array

Source§

impl From<JsValue> for Iterator

Source§

impl From<JsValue> for IteratorNext

Source§

impl From<JsValue> for JsString

Source§

impl From<JsValue> for Map

Source§

impl From<JsValue> for js_sys::Number

Source§

impl From<JsValue> for Object

Source§

impl From<JsValue> for Promise

Source§

impl From<JsValue> for Proxy

Source§

impl From<JsValue> for RangeError

Source§

impl From<JsValue> for ReferenceError

Source§

impl From<JsValue> for RegExp

Source§

impl From<JsValue> for Set

Source§

impl From<JsValue> for SharedArrayBuffer

Source§

impl From<JsValue> for Symbol

Source§

impl From<JsValue> for SyntaxError

Source§

impl From<JsValue> for TypeError

Source§

impl From<JsValue> for Uint8Array

Source§

impl From<JsValue> for Uint8ClampedArray

Source§

impl From<JsValue> for Uint16Array

Source§

impl From<JsValue> for Uint32Array

Source§

impl From<JsValue> for UriError

Source§

impl From<JsValue> for WeakMap

Source§

impl From<JsValue> for WeakSet

Source§

impl From<JsValue> for Deserializer

Source§

impl From<JsValue> for serde_wasm_bindgen::error::Error

This conversion is needed for ? to just work when using wasm-bindgen imports that return JavaScript exceptions as Result<T, JsValue>.

Source§

impl From<JsValue> for AbortSignal

Source§

impl From<JsValue> for AddEventListenerOptions

Source§

impl From<JsValue> for web_sys::features::gen_Blob::Blob

Source§

impl From<JsValue> for BlobPropertyBag

Source§

impl From<JsValue> for CloseEvent

Source§

impl From<JsValue> for CloseEventInit

Source§

impl From<JsValue> for DedicatedWorkerGlobalScope

Source§

impl From<JsValue> for Document

Source§

impl From<JsValue> for DomException

Source§

impl From<JsValue> for Element

Source§

impl From<JsValue> for ErrorEvent

Source§

impl From<JsValue> for Event

Source§

impl From<JsValue> for EventSource

Source§

impl From<JsValue> for EventTarget

Source§

impl From<JsValue> for web_sys::features::gen_File::File

Source§

impl From<JsValue> for web_sys::features::gen_FileList::FileList

Source§

impl From<JsValue> for FilePropertyBag

Source§

impl From<JsValue> for FileReader

Source§

impl From<JsValue> for FormData

Source§

impl From<JsValue> for Headers

Source§

impl From<JsValue> for History

Source§

impl From<JsValue> for HtmlElement

Source§

impl From<JsValue> for HtmlHeadElement

Source§

impl From<JsValue> for HtmlInputElement

Source§

impl From<JsValue> for Location

Source§

impl From<JsValue> for MessageEvent

Source§

impl From<JsValue> for Node

Source§

impl From<JsValue> for ObserverCallback

Source§

impl From<JsValue> for ProgressEvent

Source§

impl From<JsValue> for ReadableStream

Source§

impl From<JsValue> for web_sys::features::gen_Request::Request

Source§

impl From<JsValue> for RequestInit

Source§

impl From<JsValue> for web_sys::features::gen_Response::Response

Source§

impl From<JsValue> for ResponseInit

Source§

impl From<JsValue> for Storage

Source§

impl From<JsValue> for Url

Source§

impl From<JsValue> for UrlSearchParams

Source§

impl From<JsValue> for WebSocket

Source§

impl From<JsValue> for Window

Source§

impl From<JsValue> for Worker

Source§

impl From<JsValue> for WorkerGlobalScope

Source§

impl From<JsValue> for WorkerOptions

Source§

impl From<AbortSignal> for Object

Source§

impl From<AbortSignal> for JsValue

Source§

impl From<AbortSignal> for EventTarget

Source§

impl From<AddEventListenerOptions> for Object

Source§

impl From<AddEventListenerOptions> for JsValue

Source§

impl From<Blob> for gloo_file::blob::Blob

Source§

impl From<Blob> for ObjectUrl

Source§

impl From<Blob> for Object

Source§

impl From<Blob> for JsValue

Source§

impl From<BlobPropertyBag> for Object

Source§

impl From<BlobPropertyBag> for JsValue

Source§

impl From<CloseEvent> for Object

Source§

impl From<CloseEvent> for JsValue

Source§

impl From<CloseEvent> for Event

Source§

impl From<CloseEventInit> for Object

Source§

impl From<CloseEventInit> for JsValue

Source§

impl From<DedicatedWorkerGlobalScope> for Object

Source§

impl From<DedicatedWorkerGlobalScope> for JsValue

Source§

impl From<DedicatedWorkerGlobalScope> for EventTarget

Source§

impl From<DedicatedWorkerGlobalScope> for WorkerGlobalScope

Source§

impl From<Document> for Object

Source§

impl From<Document> for JsValue

Source§

impl From<Document> for EventTarget

Source§

impl From<Document> for Node

Source§

impl From<DomException> for Object

Source§

impl From<DomException> for JsValue

Source§

impl From<Element> for Object

Source§

impl From<Element> for JsValue

Source§

impl From<Element> for EventTarget

Source§

impl From<Element> for Node

Source§

impl From<ErrorEvent> for Object

Source§

impl From<ErrorEvent> for JsValue

Source§

impl From<ErrorEvent> for Event

Source§

impl From<Event> for Object

Source§

impl From<Event> for JsValue

Source§

impl From<EventSource> for Object

Source§

impl From<EventSource> for JsValue

Source§

impl From<EventSource> for EventTarget

Source§

impl From<EventTarget> for Object

Source§

impl From<EventTarget> for JsValue

Source§

impl From<File> for gloo_file::blob::Blob

Source§

impl From<File> for gloo_file::blob::File

Source§

impl From<File> for Object

Source§

impl From<File> for JsValue

Source§

impl From<File> for web_sys::features::gen_Blob::Blob

Source§

impl From<FileList> for gloo_file::file_list::FileList

Source§

impl From<FileList> for Object

Source§

impl From<FileList> for JsValue

Source§

impl From<FilePropertyBag> for Object

Source§

impl From<FilePropertyBag> for JsValue

Source§

impl From<FileReader> for Object

Source§

impl From<FileReader> for JsValue

Source§

impl From<FileReader> for EventTarget

Source§

impl From<FormData> for Object

Source§

impl From<FormData> for JsValue

Source§

impl From<Headers> for Object

Source§

impl From<Headers> for JsValue

Source§

impl From<History> for Object

Source§

impl From<History> for JsValue

Source§

impl From<HtmlElement> for Object

Source§

impl From<HtmlElement> for JsValue

Source§

impl From<HtmlElement> for Element

Source§

impl From<HtmlElement> for EventTarget

Source§

impl From<HtmlElement> for Node

Source§

impl From<HtmlHeadElement> for Object

Source§

impl From<HtmlHeadElement> for JsValue

Source§

impl From<HtmlHeadElement> for Element

Source§

impl From<HtmlHeadElement> for EventTarget

Source§

impl From<HtmlHeadElement> for HtmlElement

Source§

impl From<HtmlHeadElement> for Node

Source§

impl From<HtmlInputElement> for Object

Source§

impl From<HtmlInputElement> for JsValue

Source§

impl From<HtmlInputElement> for Element

Source§

impl From<HtmlInputElement> for EventTarget

Source§

impl From<HtmlInputElement> for HtmlElement

Source§

impl From<HtmlInputElement> for Node

Source§

impl From<Location> for Object

Source§

impl From<Location> for JsValue

Source§

impl From<MessageEvent> for Object

Source§

impl From<MessageEvent> for JsValue

Source§

impl From<MessageEvent> for Event

Source§

impl From<Node> for Object

Source§

impl From<Node> for JsValue

Source§

impl From<Node> for EventTarget

Source§

impl From<ObserverCallback> for Object

Source§

impl From<ObserverCallback> for JsValue

Source§

impl From<ProgressEvent> for Object

Source§

impl From<ProgressEvent> for JsValue

Source§

impl From<ProgressEvent> for Event

Source§

impl From<ReadableStream> for Object

Source§

impl From<ReadableStream> for JsValue

Source§

impl From<Request> for gloo_net::http::request::Request

Source§

impl From<Request> for Object

Source§

impl From<Request> for JsValue

Source§

impl From<RequestInit> for Object

Source§

impl From<RequestInit> for JsValue

Source§

impl From<Response> for gloo_net::http::response::Response

Source§

impl From<Response> for Object

Source§

impl From<Response> for JsValue

Source§

impl From<ResponseInit> for Object

Source§

impl From<ResponseInit> for JsValue

Source§

impl From<Storage> for Object

Source§

impl From<Storage> for JsValue

Source§

impl From<Url> for Object

Source§

impl From<Url> for JsValue

Source§

impl From<UrlSearchParams> for Object

Source§

impl From<UrlSearchParams> for JsValue

Source§

impl From<WebSocket> for Object

Source§

impl From<WebSocket> for JsValue

Source§

impl From<WebSocket> for EventTarget

Source§

impl From<Window> for Object

Source§

impl From<Window> for JsValue

Source§

impl From<Window> for EventTarget

Source§

impl From<Worker> for Object

Source§

impl From<Worker> for JsValue

Source§

impl From<Worker> for EventTarget

Source§

impl From<WorkerGlobalScope> for Object

Source§

impl From<WorkerGlobalScope> for JsValue

Source§

impl From<WorkerGlobalScope> for EventTarget

Source§

impl From<WorkerOptions> for Object

Source§

impl From<WorkerOptions> for JsValue

1.62.0 · Source§

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

Source§

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

Source§

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

Source§

impl From<Bound<'_, PyByteArray>> for PyBackedBytes

Source§

impl From<Bound<'_, PyBytes>> for PyBackedBytes

Source§

impl From<ParseBoolError> for TimecatError

Source§

impl From<ParseBoolError> for PyErr

Source§

impl From<ParseIntError> for TimecatError

Source§

impl From<ParseIntError> for PyErr

1.20.0 · Source§

impl From<PathBuf> for Box<Path>

1.24.0 · Source§

impl From<PathBuf> for Rc<Path>

1.14.0 · Source§

impl From<PathBuf> for OsString

1.24.0 · Source§

impl From<PathBuf> for Arc<Path>

Source§

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

Convert PyErr to io::Error

Source§

impl From<BitBoard> for u64

Source§

impl From<Move> for ValidOrNullMove

Source§

impl From<ByteStr> for Bytes

Source§

impl From<Custom> for Bytes

Source§

impl From<ErrorKind> for InvalidUri

Source§

impl From<ErrorKind> for InvalidUriParts

Source§

impl From<Global> for JsValue

Source§

impl From<Global> for JsValue

Source§

impl From<MaybeIterator> for JsValue

Source§

impl From<ObjectExt> for JsValue

Source§

impl From<ParserNumber> for serde_json::number::Number

Source§

impl From<PyASCIIObjectState> for u32

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.0.0 · Source§

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

Source§

impl<'a> From<&'a str> for BytesMut

Source§

impl<'a> From<&'a str> for ColoredString

Source§

impl<'a> From<&'a str> for JsString

Source§

impl<'a> From<&'a str> for JsValue

Source§

impl<'a> From<&'a ByteString> for Cow<'a, ByteStr>

1.28.0 · Source§

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

1.28.0 · Source§

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

Source§

impl<'a> From<&'a String> for JsValue

Source§

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

Source§

impl<'a> From<&'a ByteStr> for ByteString

1.28.0 · Source§

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

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>

Source§

impl<'a> From<&'a HeaderName> for HeaderName

Source§

impl<'a> From<&'a HeaderValue> for HeaderValue

Source§

impl<'a> From<&'a Method> for Method

Source§

impl<'a> From<&'a StatusCode> for StatusCode

Source§

impl<'a> From<&'a JsString> for String

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>

Source§

impl<'a> From<&'a [f32]> for Float32Array

Source§

impl<'a> From<&'a [f64]> for Float64Array

Source§

impl<'a> From<&'a [i8]> for Int8Array

Source§

impl<'a> From<&'a [i16]> for Int16Array

Source§

impl<'a> From<&'a [i32]> for Int32Array

Source§

impl<'a> From<&'a [i64]> for BigInt64Array

Source§

impl<'a> From<&'a [u8]> for BytesMut

Source§

impl<'a> From<&'a [u8]> for Uint8Array

Source§

impl<'a> From<&'a [u8]> for Uint8ClampedArray

Source§

impl<'a> From<&'a [u16]> for Uint16Array

Source§

impl<'a> From<&'a [u32]> for Uint32Array

Source§

impl<'a> From<&'a [u64]> for BigUint64Array

Source§

impl<'a> From<&'a mut [u8]> for &'a mut UninitSlice

Source§

impl<'a> From<&'a mut [MaybeUninit<u8>]> for &'a mut UninitSlice

1.6.0 · Source§

impl<'a> From<&str> for Box<dyn Error + 'a>

1.0.0 · Source§

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

Source§

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

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<ByteString> for Cow<'a, ByteStr>

1.28.0 · Source§

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

1.0.0 · Source§

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

1.6.0 · Source§

impl<'a> From<String> for Box<dyn Error + 'a>

1.0.0 · Source§

impl<'a> From<String> for Box<dyn Error + Send + Sync + 'a>

1.28.0 · Source§

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

Source§

impl<'a> From<PercentDecode<'a>> for Cow<'a, [u8]>

Source§

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

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 + 'a>

1.22.0 · Source§

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

Source§

impl<'a, 'py, T> From<&'a Bound<'py, T>> for Borrowed<'a, 'py, T>

Source§

impl<'a, 'py, T> From<BoundRef<'a, 'py, T>> for &'a Bound<'py, T>

Source§

impl<'a, 'py, T> From<BoundRef<'a, 'py, T>> for Bound<'py, T>

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>,

1.0.0 · Source§

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

1.0.0 · Source§

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

1.30.0 (const: unstable) · 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>> for Cow<'a, [T]>
where T: Clone,

1.30.0 (const: unstable) · 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>
where [T]: ToOwned<Owned = Vec<T>>,

Source§

impl<'a, T> From<&'a T> for JsValue
where T: JsCast,

1.8.0 · Source§

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

Source§

impl<'a, T> From<PyRef<'a, T>> for Py<T>
where T: PyClass,

Source§

impl<'a, T> From<PyRefMut<'a, T>> for Py<T>
where T: PyClass<Frozen = False>,

1.77.0 · Source§

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

Source§

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

Creates a new BorrowedBuf from a fully initialized slice.

Source§

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

Creates a new BorrowedBuf from an uninitialized buffer.

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

Source§

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.

Source§

impl<'key> From<Key<'key>> for Cow<'static, str>

Source§

impl<'py, T> From<Bound<'py, T>> for PyClassInitializer<T>
where T: PyClass,

Source§

impl<'py, T> From<Bound<'py, T>> for PyErr
where T: ToPyErr,

Source§

impl<A> From<(A,)> for Zip<(<A as IntoIterator>::IntoIter,)>
where A: IntoIterator,

1.19.0 · Source§

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

Source§

impl<A, B> From<Either<A, B>> for EitherOrBoth<A, B>

Source§

impl<A, B> From<EitherOrBoth<A, B>> for Option<Either<A, B>>

Source§

impl<A, B> From<(A, B)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter)>

Source§

impl<A, B, C> From<(A, B, C)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D> From<(A, B, C, D)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E> From<(A, B, C, D, E)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F> From<(A, B, C, D, E, F)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F, G> From<(A, B, C, D, E, F, G)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter, <G as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F, G, H> From<(A, B, C, D, E, F, G, H)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter, <G as IntoIterator>::IntoIter, <H as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F, G, H, I> From<(A, B, C, D, E, F, G, H, I)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter, <G as IntoIterator>::IntoIter, <H as IntoIterator>::IntoIter, <I as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F, G, H, I, J> From<(A, B, C, D, E, F, G, H, I, J)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter, <G as IntoIterator>::IntoIter, <H as IntoIterator>::IntoIter, <I as IntoIterator>::IntoIter, <J as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> From<(A, B, C, D, E, F, G, H, I, J, K)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter, <G as IntoIterator>::IntoIter, <H as IntoIterator>::IntoIter, <I as IntoIterator>::IntoIter, <J as IntoIterator>::IntoIter, <K as IntoIterator>::IntoIter)>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> From<(A, B, C, D, E, F, G, H, I, J, K, L)> for Zip<(<A as IntoIterator>::IntoIter, <B as IntoIterator>::IntoIter, <C as IntoIterator>::IntoIter, <D as IntoIterator>::IntoIter, <E as IntoIterator>::IntoIter, <F as IntoIterator>::IntoIter, <G as IntoIterator>::IntoIter, <H as IntoIterator>::IntoIter, <I as IntoIterator>::IntoIter, <J as IntoIterator>::IntoIter, <K as IntoIterator>::IntoIter, <L as IntoIterator>::IntoIter)>

Source§

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

Source§

impl<E> From<E> for wasm_bindgen::JsError
where E: Error,

1.17.0 (const: unstable) · Source§

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

1.56.0 · Source§

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

1.56.0 · Source§

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

Source§

impl<L, R> From<Either<L, R>> for core::result::Result<R, L>

Convert from Either to Result with Right => Ok and Left => Err.

Source§

impl<L, R> From<Result<R, L>> for Either<L, R>

Convert from Result to Either with Ok => Right and Err => Left.

Source§

impl<P: PositionEvaluation> From<&Searcher<P>> for SearchInfo

Source§

impl<S, B> From<(S, B)> for PyClassInitializer<S>
where B: PyClass + PyClassBaseType<Initializer = PyClassInitializer<B>>, <B as PyClassImpl>::BaseType: PyClassBaseType<Initializer = PyNativeTypeInitializer<<B as PyClassImpl>::BaseType>>, S: PyClass<BaseType = B>,

Source§

impl<T> From<&[T]> for Value
where T: Clone + Into<Value>,

1.17.0 · Source§

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

1.21.0 · Source§

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

1.0.0 · Source§

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

1.21.0 · Source§

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

1.84.0 · Source§

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

1.84.0 · Source§

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

1.19.0 · Source§

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

1.84.0 · Source§

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

1.45.0 · Source§

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

Source§

impl<T> From<Option<T>> for Value
where T: Into<Value>,

Source§

impl<T> From<Option<T>> for JsValue
where JsValue: From<T>,

1.71.0 · Source§

impl<T> 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<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.

Source§

impl<T> From<*const T> for JsValue

1.23.0 · Source§

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

Source§

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

1.25.0 · Source§

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

1.0.0 · Source§

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

1.0.0 · Source§

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

1.25.0 · Source§

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

1.71.0 · Source§

impl<T> From<(T₁, T₂, …, Tₙ)> for [T; N]

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

Source§

impl<T> From<Box<[T]>> for JsValue
where T: VectorIntoJsValue,

Source§

impl<T> From<Vec<T>> for Value
where T: Into<Value>,

Source§

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

1.31.0 (const: unstable) · Source§

impl<T> From<NonZero<T>> for T

Source§

impl<T> From<RangeFrom<T>> for core::range::RangeFrom<T>

Source§

impl<T> From<RangeInclusive<T>> for core::range::RangeInclusive<T>

Source§

impl<T> From<NonNull<T>> for JsValue

Source§

impl<T> From<Range<T>> for timecat::Range<T>

Source§

impl<T> From<RangeFrom<T>> for core::ops::range::RangeFrom<T>

Source§

impl<T> From<RangeInclusive<T>> for core::ops::range::RangeInclusive<T>

Source§

impl<T> From<SendError<T>> for SendTimeoutError<T>

1.24.0 · Source§

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

1.0.0 · Source§

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

Source§

impl<T> From<Port<T>> for u16

Source§

impl<T> From<Clamped<Vec<T>>> for JsValue

Source§

impl<T> From<Borrowed<'_, '_, T>> for Py<T>

Source§

impl<T> From<Bound<'_, T>> for Py<PyAny>
where T: DerefToPyAny,

Source§

impl<T> From<Bound<'_, T>> for Py<T>

Source§

impl<T> From<Py<T>> for Py<PyAny>
where T: DerefToPyAny,

Source§

impl<T> From<Py<T>> for PyClassInitializer<T>
where T: PyClass,

Source§

impl<T> From<Range<T>> for core::range::Range<T>

Source§

impl<T> From<BoundRef<'_, '_, T>> for Py<T>

1.12.0 (const: unstable) · Source§

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

1.36.0 · Source§

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

1.6.0 · Source§

impl<T> From<T> for Box<T>

1.6.0 · Source§

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

1.70.0 · Source§

impl<T> From<T> for core::cell::once::OnceCell<T>

1.12.0 · Source§

impl<T> From<T> for Cell<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>

Source§

impl<T> From<T> for UnsafePinned<T>

Source§

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

Source§

impl<T> From<T> for std::sync::nonpoison::mutex::Mutex<T>

1.70.0 · Source§

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

1.24.0 · Source§

impl<T> From<T> for std::sync::poison::mutex::Mutex<T>

Source§

impl<T> From<T> for ReentrantLock<T>

Source§

impl<T> From<T> for once_cell::sync::OnceCell<T>

Source§

impl<T> From<T> for once_cell::unsync::OnceCell<T>

Source§

impl<T> From<T> for WasmRet<T>
where T: WasmAbi,

1.6.0 · Source§

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

Source§

impl<T> From<T> for PyClassInitializer<T>
where T: PyClass, <T as PyClassImpl>::BaseType: PyClassBaseType<Initializer = PyNativeTypeInitializer<<T as PyClassImpl>::BaseType>>,

1.24.0 · Source§

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

1.0.0 (const: unstable) · 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.21.0 · Source§

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

1.33.0 · Source§

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

1.21.0 · Source§

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

1.5.0 · Source§

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

1.10.0 · Source§

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

1.20.0 · Source§

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

1.5.0 · Source§

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

1.10.0 · Source§

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

1.21.0 · Source§

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

1.21.0 · Source§

impl<T, A> From<Vec<T, A>> for Arc<[T], A>
where A: Allocator + Clone,

Source§

impl<T, const CAP: usize> From<[T; CAP]> for ArrayVec<T, CAP>

Create an ArrayVec from an array.

use arrayvec::ArrayVec;

let mut array = ArrayVec::from([1, 2, 3]);
assert_eq!(array.len(), 3);
assert_eq!(array.capacity(), 3);
1.74.0 · Source§

impl<T, const N: usize> From<&[T; N]> for Vec<T>
where T: Clone,

1.74.0 · Source§

impl<T, const N: usize> From<&mut [T; N]> for Vec<T>
where T: Clone,

Source§

impl<T, const N: usize> From<[T; N]> for Value
where T: Into<Value>,

1.45.0 · Source§

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

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>
where T: Ord,

1.56.0 · Source§

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

1.56.0 · Source§

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

1.74.0 · Source§

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

1.44.0 · Source§

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

Source§

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

Source§

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

1.74.0 · Source§

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

1.56.0 · Source§

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

Source§

impl<T, const N: usize> From<Mask<T, N>> for [bool; N]

Source§

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

Source§

impl<T, const N: usize> From<Mask<T, N>> for Simd<T, N>

Source§

impl<T, const N: usize> From<[bool; N]> for Mask<T, N>

Source§

impl<T: Clone, U: From<T> + Debug, const N: usize> From<&MathVec<T, N>> for MathVec<U, N>

Source§

impl<T: Debug> From<T> for CustomDebug<T>

Source§

impl<W> From<Rc<W>> for LocalWaker
where W: LocalWake + 'static,

Source§

impl<W> From<Rc<W>> for RawWaker
where W: LocalWake + 'static,

1.0.0 · Source§

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

Source§

impl<W> From<IntoInnerError<W>> for PyErr

1.51.0 · Source§

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

1.51.0 · Source§

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

Source§

impl<const N: usize> From<Mask<i8, N>> for Mask<i16, N>

Source§

impl<const N: usize> From<Mask<i8, N>> for Mask<i32, N>

Source§

impl<const N: usize> From<Mask<i8, N>> for Mask<i64, N>

Source§

impl<const N: usize> From<Mask<i8, N>> for Mask<isize, N>

Source§

impl<const N: usize> From<Mask<i16, N>> for Mask<i8, N>

Source§

impl<const N: usize> From<Mask<i16, N>> for Mask<i32, N>

Source§

impl<const N: usize> From<Mask<i16, N>> for Mask<i64, N>

Source§

impl<const N: usize> From<Mask<i16, N>> for Mask<isize, N>

Source§

impl<const N: usize> From<Mask<i32, N>> for Mask<i8, N>

Source§

impl<const N: usize> From<Mask<i32, N>> for Mask<i16, N>

Source§

impl<const N: usize> From<Mask<i32, N>> for Mask<i64, N>

Source§

impl<const N: usize> From<Mask<i32, N>> for Mask<isize, N>

Source§

impl<const N: usize> From<Mask<i64, N>> for Mask<i8, N>

Source§

impl<const N: usize> From<Mask<i64, N>> for Mask<i16, N>

Source§

impl<const N: usize> From<Mask<i64, N>> for Mask<i32, N>

Source§

impl<const N: usize> From<Mask<i64, N>> for Mask<isize, N>

Source§

impl<const N: usize> From<Mask<isize, N>> for Mask<i8, N>

Source§

impl<const N: usize> From<Mask<isize, N>> for Mask<i16, N>

Source§

impl<const N: usize> From<Mask<isize, N>> for Mask<i32, N>

Source§

impl<const N: usize> From<Mask<isize, N>> for Mask<i64, N>