From

Trait From 

1.6.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<&str> for serde_json::value::Value

1.17.0 · Source§

impl From<&str> for Box<str>

Available on non-no_global_oom_handling only.
1.21.0 · Source§

impl From<&str> for Rc<str>

Available on non-no_global_oom_handling only.
1.0.0 · Source§

impl From<&str> for String

Available on non-no_global_oom_handling only.
1.21.0 · Source§

impl From<&str> for Arc<str>

Available on non-no_global_oom_handling only.
1.0.0 · Source§

impl From<&str> for Vec<u8>

Available on non-no_global_oom_handling only.
§

impl From<&str> for ConfigValue

§

impl From<&str> for FlyByteStr

§

impl From<&str> for FlyStr

§

impl From<&str> for StringReference

Allocates an Arc<String> from data

§

impl From<&u32> for BlockIndex

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>

Available on target_has_atomic=ptr only.
§

impl From<&Box<str>> for FlyByteStr

§

impl From<&Box<str>> for FlyStr

§

impl From<&Box<[u8]>> for FlyByteStr

1.35.0 · Source§

impl From<&String> for String

Available on non-no_global_oom_handling only.
§

impl From<&String> for FlyByteStr

§

impl From<&String> for FlyStr

§

impl From<&String> for StringReference

Allocates an Arc<String> from data

§

impl From<&Vec<u8>> for FlyByteStr

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>

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>

§

impl From<&BStr> for FlyByteStr

Source§

impl From<&zx_restricted_state_t> for zx_thread_state_general_regs_t

Available on x86-64 only.
Source§

impl From<&zx_thread_state_general_regs_t> for zx_restricted_state_t

Available on x86-64 only.
§

impl From<&BlockIndex> for usize

§

impl From<&BorrowedChildName> for ChildName

§

impl From<&BorrowedChildName> for ChildRef

§

impl From<&CapabilityDecl> for CapabilityTypeName

§

impl From<&ExposeDecl> for CapabilityTypeName

§

impl From<&FlyStr> for String

§

impl From<&OfferDecl> for CapabilityTypeName

§

impl From<&StringReference> for StringReference

Internally clones itself without allocation or copy

§

impl From<&Use> for DeclType

§

impl From<&UseDecl> for CapabilityTypeName

§

impl From<&[u8]> for FlyByteStr

1.84.0 · Source§

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

Available on non-no_global_oom_handling only.
1.84.0 · Source§

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

Available on non-no_global_oom_handling only.
1.44.0 · Source§

impl From<&mut str> for String

Available on non-no_global_oom_handling only.
1.84.0 · Source§

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

Available on non-no_global_oom_handling only.
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>

Available on target_has_atomic=ptr only.
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<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

§

impl From<SocketAddr> for SockAddr

Source§

impl From<Result<(), Status>> for Status

1.36.0 (const: unstable) · Source§

impl From<Infallible> for TryFromSliceError

1.34.0 (const: unstable) · Source§

impl From<Infallible> for TryFromIntError

1.45.0 · Source§

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

Available on non-no_global_oom_handling only.
§

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

Allocates an Arc<String> from data

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

1.89.0 · Source§

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

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<ErrorKind> for Status

Source§

impl From<bool> for serde_json::value::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

1.24.0 (const: unstable) · Source§

impl From<bool> for AtomicBool

Available on target_has_atomic_load_store=8 only.
§

impl From<bool> for ConfigSingleValue

§

impl From<bool> for ConfigValue

§

impl From<bool> for Schema

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

Available on non-no_global_oom_handling only.
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 serde_json::value::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<f64> for serde_json::value::Value

1.6.0 (const: unstable) · Source§

impl From<f64> for f128

Source§

impl From<i8> for serde_json::value::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 Number

§

impl From<i8> for ConfigSingleValue

§

impl From<i8> for ConfigValue

Source§

impl From<i16> for serde_json::value::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 Number

§

impl From<i16> for ConfigSingleValue

§

impl From<i16> for ConfigValue

Source§

impl From<i32> for serde_json::value::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 Number

§

impl From<i32> for ConfigSingleValue

§

impl From<i32> for ConfigValue

§

impl From<i32> for Domain

§

impl From<i32> for Protocol

§

impl From<i32> for Type

Source§

impl From<i64> for serde_json::value::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 Number

§

impl From<i64> for ConfigSingleValue

§

impl From<i64> for ConfigValue

Source§

impl From<i128> for AtomicI128

Source§

impl From<isize> for serde_json::value::Value

1.23.0 (const: unstable) · Source§

impl From<isize> for AtomicIsize

Source§

impl From<isize> for Number

1.34.0 (const: unstable) · Source§

impl From<!> for Infallible

Source§

impl From<!> for TryFromIntError

Source§

impl From<u8> for serde_json::value::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 Number

§

impl From<u8> for ConfigSingleValue

§

impl From<u8> for ConfigValue

§

impl From<u8> for HandleType

§

impl From<u8> for Level

Source§

impl From<u16> for serde_json::value::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 Number

§

impl From<u16> for ConfigSingleValue

§

impl From<u16> for ConfigValue

Source§

impl From<u32> for serde_json::value::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

Source§

impl From<u32> for UncheckedSignal

Source§

impl From<u32> for UserAddress32

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 Number

§

impl From<u32> for BlockIndex

§

impl From<u32> for CachePolicy

§

impl From<u32> for ConfigSingleValue

§

impl From<u32> for ConfigValue

§

impl From<u32> for Txid

Source§

impl From<u64> for serde_json::value::Value

1.26.0 (const: unstable) · Source§

impl From<u64> for i128

1.26.0 (const: unstable) · Source§

impl From<u64> for u128

Source§

impl From<u64> for SigSet

Source§

impl From<u64> for UserAddress

1.34.0 (const: unstable) · Source§

impl From<u64> for AtomicU64

Source§

impl From<u64> for Number

§

impl From<u64> for ConfigSingleValue

§

impl From<u64> for ConfigValue

1.26.0 (const: unstable) · Source§

impl From<u128> for Ipv6Addr

Source§

impl From<u128> for AtomicU128

Source§

impl From<()> for serde_json::value::Value

Source§

impl From<usize> for serde_json::value::Value

1.23.0 (const: unstable) · Source§

impl From<usize> for AtomicUsize

Source§

impl From<usize> for Number

Source§

impl From<Credentials> for FsCred

Source§

impl From<Errno> for Status

Source§

impl From<IptIpInverseFlags> for u64

Source§

impl From<SigSet> for sigset_t

Source§

impl From<Signal> for SigSet

Source§

impl From<Signal> for UncheckedSignal

Source§

impl From<statfs> for statfs64

Source§

impl From<uaddr32> for uaddr

Source§

impl From<uaddr32> for UserAddress

Source§

impl From<uaddr> for UserAddress

Source§

impl From<UserAddress32> for UserAddress

Source§

impl From<UserAddress> for u64

Source§

impl From<UserAddress> for uaddr

Source§

impl From<LayoutError> for TryReserveErrorKind

§

impl From<LayoutError> for CollectionAllocErr

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<Error> for log::kv::error::Error

1.16.0 (const: unstable) · Source§

impl From<Ipv4Addr> for IpAddr

1.1.0 (const: unstable) · Source§

impl From<Ipv4Addr> for u32

1.16.0 (const: unstable) · Source§

impl From<Ipv6Addr> for IpAddr

1.26.0 (const: unstable) · Source§

impl From<Ipv6Addr> for u128

1.16.0 (const: unstable) · Source§

impl From<SocketAddrV4> for SocketAddr

§

impl From<SocketAddrV4> for SockAddr

1.16.0 (const: unstable) · Source§

impl From<SocketAddrV6> for SocketAddr

§

impl From<SocketAddrV6> for SockAddr

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<NonZero<u64>> for BugRef

Source§

impl From<Alignment> for usize

Source§

impl From<Alignment> for NonZero<usize>

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

impl From<Box<str>> for String

§

impl From<Box<str>> for FlyByteStr

§

impl From<Box<str>> for FlyStr

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<BStr>> for Box<[u8]>

Available on crate feature alloc only.
§

impl From<Box<[bool]>> for ConfigValue

§

impl From<Box<[bool]>> for ConfigVectorValue

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

Source§

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

Source§

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

Available on crate feature alloc only.
§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

impl From<Box<[String]>> for ConfigValue

§

impl From<Box<[String]>> for ConfigVectorValue

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

impl From<CString> for Arc<CStr>

Available on target_has_atomic=ptr only.
1.7.0 · Source§

impl From<CString> for Vec<u8>

1.0.0 · Source§

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

Source§

impl From<NulError> for Status

1.62.0 · Source§

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

Source§

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

Available on non-no_rc only.
Source§

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

Available on non-no_rc only.
Source§

impl From<String> for serde_json::value::Value

1.20.0 · Source§

impl From<String> for Box<str>

Available on non-no_global_oom_handling only.
1.21.0 · Source§

impl From<String> for Rc<str>

Available on non-no_global_oom_handling only.
1.21.0 · Source§

impl From<String> for Arc<str>

Available on non-no_global_oom_handling only.
1.14.0 · Source§

impl From<String> for Vec<u8>

1.0.0 · Source§

impl From<String> for OsString

1.0.0 · Source§

impl From<String> for PathBuf

Source§

impl From<String> for BString

§

impl From<String> for ConfigSingleValue

§

impl From<String> for ConfigValue

§

impl From<String> for FlyByteStr

§

impl From<String> for FlyStr

§

impl From<String> for StringReference

Consumes the input without allocation or copy

1.62.0 · Source§

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

§

impl From<Arc<str>> for StringReference

Consumes the input without allocation or copy

Source§

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

Available on non-no_rc and non-no_sync and target_has_atomic=ptr only.
Source§

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

Available on non-no_rc and non-no_sync and target_has_atomic=ptr only.
§

impl From<Vec<&str>> for ConfigValue

§

impl From<Vec<&BoundedBorrowedName<cm_types::::BorrowedName::{constant#0}>>> for RelativePath

§

impl From<Vec<bool>> for ConfigValue

§

impl From<Vec<bool>> for ConfigVectorValue

§

impl From<Vec<i8>> for ConfigValue

§

impl From<Vec<i8>> for ConfigVectorValue

§

impl From<Vec<i16>> for ConfigValue

§

impl From<Vec<i16>> for ConfigVectorValue

§

impl From<Vec<i32>> for ConfigValue

§

impl From<Vec<i32>> for ConfigVectorValue

§

impl From<Vec<i64>> for ConfigValue

§

impl From<Vec<i64>> for ConfigVectorValue

Source§

impl From<Vec<u8>> for BString

§

impl From<Vec<u8>> for BackingBuffer

§

impl From<Vec<u8>> for ConfigValue

§

impl From<Vec<u8>> for ConfigVectorValue

§

impl From<Vec<u8>> for FlyByteStr

§

impl From<Vec<u16>> for ConfigValue

§

impl From<Vec<u16>> for ConfigVectorValue

§

impl From<Vec<u32>> for ConfigValue

§

impl From<Vec<u32>> for ConfigVectorValue

§

impl From<Vec<u64>> for ConfigValue

§

impl From<Vec<u64>> for ConfigVectorValue

1.43.0 · Source§

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

§

impl From<Vec<String>> for ConfigValue

§

impl From<Vec<String>> for ConfigVectorValue

§

impl From<Vec<BoundedName<cm_types::::Name::{constant#0}>>> for RelativePath

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

1.63.0 · Source§

impl From<File> for OwnedFd

Available on non-target_os=trusty only.
1.20.0 · Source§

impl From<File> for Stdio

Source§

impl From<Error> for log::kv::error::Error

Source§

impl From<Error> for Status

§

impl From<Error> for Error

§

impl From<Error> for GetTimezoneError

1.87.0 · Source§

impl From<PipeReader> for OwnedFd

Available on non-target_os=trusty only.
1.87.0 · Source§

impl From<PipeReader> for Stdio

1.87.0 · Source§

impl From<PipeWriter> for OwnedFd

Available on non-target_os=trusty only.
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

Available on non-target_os=trusty only.
§

impl From<TcpListener> for Socket

1.63.0 · Source§

impl From<TcpStream> for OwnedFd

Available on non-target_os=trusty only.
§

impl From<TcpStream> for Socket

1.63.0 · Source§

impl From<UdpSocket> for OwnedFd

Available on non-target_os=trusty only.
§

impl From<UdpSocket> for Socket

1.63.0 · Source§

impl From<OwnedFd> for File

Available on non-target_os=trusty only.
1.87.0 · Source§

impl From<OwnedFd> for PipeReader

Available on non-target_os=trusty only.
1.87.0 · Source§

impl From<OwnedFd> for PipeWriter

Available on non-target_os=trusty only.
1.63.0 · Source§

impl From<OwnedFd> for TcpListener

Available on non-target_os=trusty only.
1.63.0 · Source§

impl From<OwnedFd> for TcpStream

Available on non-target_os=trusty only.
1.63.0 · Source§

impl From<OwnedFd> for UdpSocket

Available on non-target_os=trusty only.
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

§

impl From<OwnedFd> for Socket

1.63.0 · Source§

impl From<UnixDatagram> for OwnedFd

§

impl From<UnixDatagram> for Socket

1.63.0 · Source§

impl From<UnixListener> for OwnedFd

§

impl From<UnixListener> for Socket

1.63.0 · Source§

impl From<UnixStream> for OwnedFd

§

impl From<UnixStream> for Socket

1.20.0 · Source§

impl From<PathBuf> for Box<Path>

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

1.24.0 · Source§

impl From<RecvError> for std::sync::mpsc::RecvTimeoutError

1.24.0 · Source§

impl From<RecvError> for std::sync::mpsc::TryRecvError

Source§

impl From<SystemTime> for DateTime<Local>

Available on crate feature clock only.
Source§

impl From<SystemTime> for DateTime<Utc>

Available on crate feature std only.
Source§

impl From<Error> for Box<dyn Error + Send>

Available on crate feature std or non-anyhow_no_core_error only.
Source§

impl From<Error> for Box<dyn Error + Sync + Send>

Available on crate feature std or non-anyhow_no_core_error only.
Source§

impl From<Error> for Box<dyn Error>

Available on crate feature std or non-anyhow_no_core_error only.
Source§

impl From<DateTime<FixedOffset>> for DateTime<Local>

Available on crate feature clock only.

Convert a DateTime<FixedOffset> instance into a DateTime<Local> instance.

Source§

impl From<DateTime<FixedOffset>> for DateTime<Utc>

Convert a DateTime<FixedOffset> instance into a DateTime<Utc> instance.

Source§

impl From<DateTime<Local>> for DateTime<FixedOffset>

Available on crate feature clock only.

Convert a DateTime<Local> instance into a DateTime<FixedOffset> instance.

Source§

impl From<DateTime<Local>> for DateTime<Utc>

Available on crate feature clock only.

Convert a DateTime<Local> instance into a DateTime<Utc> instance.

Source§

impl From<DateTime<Utc>> for DateTime<FixedOffset>

Convert a DateTime<Utc> instance into a DateTime<FixedOffset> instance.

Source§

impl From<DateTime<Utc>> for DateTime<Local>

Available on crate feature clock only.

Convert a DateTime<Utc> instance into a DateTime<Local> instance.

Source§

impl From<NaiveDate> for NaiveDateTime

Source§

impl From<NaiveDateTime> for NaiveDate

Source§

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

Available on crate feature std only.
Source§

impl From<Map<String, Value>> for serde_json::value::Value

Source§

impl From<Number> for serde_json::value::Value

Source§

impl From<Url> for String

String conversion.

Source§

impl From<BString> for Vec<u8>

§

impl From<BString> for FlyByteStr

Source§

impl From<Status> for Result<(), Status>

Source§

impl From<Status> for ErrorKind

Source§

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

§

impl From<Status> for ReaderError

§

impl From<Status> for TransportError

§

impl From<zx_info_bti_t> for BtiInfo

§

impl From<zx_info_cpu_stats_t> for PerCpuStats

§

impl From<zx_info_handle_basic_t> for HandleBasicInfo

§

impl From<zx_info_handle_count_t> for HandleCountInfo

§

impl From<zx_info_job_t> for JobInfo

§

impl From<zx_info_kmem_stats_compression_t> for MemStatsCompression

§

impl From<zx_info_kmem_stats_extended_t> for MemStatsExtended

§

impl From<zx_info_kmem_stats_t> for MemStats

§

impl From<zx_info_maps_mapping_t> for MappingDetails

§

impl From<zx_info_memory_stall_t> for MemoryStall

§

impl From<zx_info_resource_t> for ResourceInfo

§

impl From<zx_info_socket_t> for SocketInfo

§

impl From<zx_info_task_runtime_t> for TaskRuntimeInfo

§

impl From<zx_info_task_stats_t> for TaskStatsInfo

§

impl From<zx_info_vmar_t> for VmarInfo

§

impl From<zx_info_vmo_t> for VmoInfo

§

impl From<AdvisoryLockingSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<AllowedOffers> for AllowedOffers

§

impl From<AllowedOffers> for AllowedOffers

§

impl From<ArchiveAccessorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<AtRestFlags> for [u8; 2]

§

impl From<Availability> for Availability

§

impl From<Availability> for Availability

§

impl From<BatchIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<BinderSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<BlockIndex> for usize

§

impl From<BootControllerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<BootInstant> for Instant<BootTimeline>

§

impl From<BoundedName<cm_types::::Name::{constant#0}>> for BoundedName<cm_types::::LongName::{constant#0}>

§

impl From<Bti> for NullableHandle

§

impl From<Bti> for NullableHandle

§

impl From<CapabilityStoreSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<CapabilityTypeName> for DirentType

§

impl From<Channel> for AdvisoryLockingSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ArchiveAccessorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for BatchIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for BinderSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for BootControllerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for CapabilityStoreSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for Channel

§

impl From<Channel> for ChildIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for CloneableSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for CloseableSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ComponentControllerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ComponentRunnerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ConfigOverrideSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ConnectorRouterSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ControllerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for CrashIntrospectSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DataRouterSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DictionaryDrainIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DictionaryEnumerateIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DictionaryKeysIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DictionaryRouterSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DictionarySynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DirConnectorRouterSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DirEntryRouterSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DirReceiverSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DirectoryRouterSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DirectorySynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for DirectoryWatcherSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for EventStreamSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ExecutionControllerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ExtendedAttributeIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for FileSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for InspectSinkSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for InstanceIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for IntrospectorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LauncherSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LifecycleControllerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LinkableSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LoaderSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LogFlusherSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LogSettingsSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for LogStreamSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ManifestBytesIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for NamespaceSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for NodeSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for NullableHandle

§

impl From<Channel> for QueryableSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ReadableSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for RealmExplorerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for RealmQuerySynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for RealmSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ReceiverSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ResolverSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for ResolverSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for RouteValidatorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for SampleSinkSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for SampleSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for StorageAdminSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for StorageAdminSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for StorageIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for StorageIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for SymlinkSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for SystemControllerSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for TaskProviderSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for TreeNameIteratorSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for TreeSynchronousProxy

Available on Fuchsia only.
§

impl From<Channel> for WritableSynchronousProxy

Available on Fuchsia only.
§

impl From<ChildIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ChildName> for ChildRef

§

impl From<ChildRef> for ChildName

§

impl From<CloneableSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<CloseableSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ComponentControllerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ComponentDecl> for Component

§

impl From<ComponentRunnerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ComponentSelector<'_>> for ComponentSelector

§

impl From<ConfigOverrideSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ConfigSingleValue> for ConfigValue

§

impl From<ConfigVectorValue> for ConfigValue

§

impl From<ConfigurationDecl> for CapabilityDecl

§

impl From<ConnectorRouterSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ControllerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Counter> for NullableHandle

§

impl From<CrashIntrospectSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DataRouterSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DebugLog> for NullableHandle

§

impl From<DecodeError> for DecodeSliceError

§

impl From<DeliveryType> for DeliveryType

Available on fuchsia_api_level_at_least=HEAD only.
§

impl From<DependencyType> for DependencyType

§

impl From<DependencyType> for DependencyType

§

impl From<DictionaryDecl> for CapabilityDecl

§

impl From<DictionaryDrainIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DictionaryEnumerateIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DictionaryKeysIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DictionaryRouterSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DictionarySynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DirConnectorRouterSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DirEntryRouterSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DirReceiverSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DirectoryDecl> for CapabilityDecl

§

impl From<DirectoryRouterSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DirectorySynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<DirectoryWatcherSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Domain> for i32

§

impl From<Durability> for Durability

§

impl From<Durability> for Durability

§

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

§

impl From<Error> for Error

§

impl From<Error> for Error

§

impl From<Error> for ReaderError

§

impl From<Error> for ReaderError

§

impl From<Error<&str>> for Error<String>

Available on crate feature alloc only.
§

impl From<Error<&[u8]>> for Error<Vec<u8>>

Available on crate feature alloc only.
§

impl From<Errors> for Result<(), Errors>

Source§

impl From<Errors> for url::parser::ParseError

§

impl From<Event> for NullableHandle

§

impl From<EventPair> for NullableHandle

§

impl From<EventStreamDecl> for CapabilityDecl

§

impl From<EventStreamSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Exception> for NullableHandle

§

impl From<Exception> for NullableHandle

§

impl From<ExecutionControllerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ExposeConfigurationDecl> for ExposeDecl

§

impl From<ExposeDictionaryDecl> for ExposeDecl

§

impl From<ExposeDirectoryDecl> for ExposeDecl

§

impl From<ExposeProtocolDecl> for ExposeDecl

§

impl From<ExposeResolverDecl> for ExposeDecl

§

impl From<ExposeRunnerDecl> for ExposeDecl

§

impl From<ExposeServiceDecl> for ExposeDecl

§

impl From<ExtendedAttributeIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<FileSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<FlyByteStr> for Vec<u8>

§

impl From<FlyByteStr> for BString

§

impl From<FlyStr> for String

§

impl From<FlyStr> for FlyByteStr

§

impl From<Guest> for NullableHandle

§

impl From<HandleType> for u8

§

impl From<HandleType> for BoundedName<cm_types::::Name::{constant#0}>

§

impl From<HandleType> for HandleInfo

An implementation of the From trait to create a [HandleInfo] from a [HandleType] with an argument of 0.

§

impl From<HandleType> for HandleType

Available on Fuchsia only.
§

impl From<InspectSinkSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<InstanceIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Instant<BootTimeline>> for BootInstant

§

impl From<Instant<MonotonicTimeline>> for MonotonicInstant

§

impl From<IntrospectorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Iob> for NullableHandle

§

impl From<IobSharedRegion> for NullableHandle

§

impl From<Iommu> for NullableHandle

§

impl From<Iommu> for NullableHandle

§

impl From<Job> for NullableHandle

§

impl From<LauncherSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Level> for u8

§

impl From<LifecycleControllerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<LinkableSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<LoaderSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<LogFlusherSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<LogSettingsSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<LogStreamSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ManifestBytesIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Moniker> for ExtendedMoniker

§

impl From<MonotonicInstant> for Instant<MonotonicTimeline>

§

impl From<Msi> for NullableHandle

§

impl From<Name> for String

§

impl From<NamespacePath> for CString

§

impl From<NamespacePath> for String

§

impl From<NamespaceSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<NodeSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<NullableHandle> for Bti

§

impl From<NullableHandle> for Bti

§

impl From<NullableHandle> for Channel

§

impl From<NullableHandle> for Counter

§

impl From<NullableHandle> for DebugLog

§

impl From<NullableHandle> for Event

§

impl From<NullableHandle> for EventPair

§

impl From<NullableHandle> for Exception

§

impl From<NullableHandle> for Exception

§

impl From<NullableHandle> for Guest

§

impl From<NullableHandle> for Iob

§

impl From<NullableHandle> for IobSharedRegion

§

impl From<NullableHandle> for Iommu

§

impl From<NullableHandle> for Iommu

§

impl From<NullableHandle> for Job

§

impl From<NullableHandle> for Msi

§

impl From<NullableHandle> for Pager

§

impl From<NullableHandle> for Pager

§

impl From<NullableHandle> for PciDevice

§

impl From<NullableHandle> for Pmt

§

impl From<NullableHandle> for Pmt

§

impl From<NullableHandle> for Port

§

impl From<NullableHandle> for Process

§

impl From<NullableHandle> for Profile

§

impl From<NullableHandle> for Resource

§

impl From<NullableHandle> for Socket

§

impl From<NullableHandle> for Stream

§

impl From<NullableHandle> for SuspendToken

§

impl From<NullableHandle> for Thread

§

impl From<NullableHandle> for Vcpu

§

impl From<NullableHandle> for Vmar

§

impl From<NullableHandle> for Vmo

§

impl From<OfferConfigurationDecl> for OfferDecl

§

impl From<OfferDictionaryDecl> for OfferDecl

§

impl From<OfferDirectoryDecl> for OfferDecl

§

impl From<OfferEventStreamDecl> for OfferDecl

§

impl From<OfferProtocolDecl> for OfferDecl

§

impl From<OfferResolverDecl> for OfferDecl

§

impl From<OfferRunnerDecl> for OfferDecl

§

impl From<OfferServiceDecl> for OfferDecl

§

impl From<OfferStorageDecl> for OfferDecl

§

impl From<OnTerminate> for OnTerminate

§

impl From<OnTerminate> for OnTerminate

§

impl From<Pager> for NullableHandle

§

impl From<Pager> for NullableHandle

§

impl From<ParseError> for Error

§

impl From<ParseError> for MonikerError

§

impl From<ParseNameError> for Status

Source§

impl From<ParserNumber> for Number

§

impl From<PartialNodeHierarchy> for DiagnosticsHierarchy

Transforms the partial hierarchy into a DiagnosticsHierarchy. If the node hierarchy had unexpanded links, those will appear as missing values.

§

impl From<Path> for CString

§

impl From<Path> for String

§

impl From<Path> for NamespacePath

§

impl From<PciDevice> for NullableHandle

§

impl From<Pmt> for NullableHandle

§

impl From<Pmt> for NullableHandle

§

impl From<Port> for NullableHandle

§

impl From<Process> for NullableHandle

§

impl From<Profile> for NullableHandle

§

impl From<Protocol> for i32

§

impl From<ProtocolDecl> for CapabilityDecl

§

impl From<QueryableSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ReadableSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<RealmExplorerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<RealmQuerySynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<RealmSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ReceiverSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<RecvError> for RecvTimeoutError

§

impl From<RecvError> for TryRecvError

§

impl From<RelativePath> for String

§

impl From<ResolverDecl> for CapabilityDecl

§

impl From<ResolverSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<ResolverSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Resource> for NullableHandle

§

impl From<RouteValidatorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<RunnerDecl> for CapabilityDecl

§

impl From<SampleSinkSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<SampleSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Schema> for SchemaObject

§

impl From<SchemaObject> for Schema

§

impl From<SchemaSettings> for SchemaGenerator

§

impl From<Segment<'_>> for StringSelector

§

impl From<Selector<'_>> for Selector

§

impl From<ServiceDecl> for CapabilityDecl

§

impl From<Socket> for TcpListener

§

impl From<Socket> for TcpStream

§

impl From<Socket> for UdpSocket

§

impl From<Socket> for OwnedFd

§

impl From<Socket> for UnixDatagram

§

impl From<Socket> for UnixListener

§

impl From<Socket> for UnixStream

§

impl From<Socket> for NullableHandle

§

impl From<SocketWriteDisposition> for u32

§

impl From<StartupMode> for StartupMode

§

impl From<StartupMode> for StartupMode

§

impl From<StorageAdminSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<StorageAdminSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<StorageDecl> for CapabilityDecl

§

impl From<StorageId> for StorageId

§

impl From<StorageId> for StorageId

§

impl From<StorageIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<StorageIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Stream> for NullableHandle

§

impl From<SuspendToken> for NullableHandle

§

impl From<SymlinkSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<SystemControllerSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<TaskProviderSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Thread> for NullableHandle

§

impl From<TreeNameIteratorSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<TreeNames<'_>> for TreeNames

§

impl From<TreeSelector<'_>> for TreeSelector

§

impl From<TreeSynchronousProxy> for NullableHandle

Available on Fuchsia only.
§

impl From<Type> for i32

§

impl From<Url> for String

§

impl From<UrlScheme> for String

§

impl From<UseConfigurationDecl> for UseDecl

§

impl From<UseDictionaryDecl> for UseDecl

§

impl From<UseDirectoryDecl> for UseDecl

§

impl From<UseEventStreamDecl> for UseDecl

§

impl From<UseProtocolDecl> for UseDecl

§

impl From<UseRunnerDecl> for UseDecl

§

impl From<UseServiceDecl> for UseDecl

§

impl From<UseStorageDecl> for UseDecl

§

impl From<ValidationError> for Error

§

impl From<ValidationError> for Error

§

impl From<ValidationError> for ParseError

§

impl From<Vcpu> for NullableHandle

§

impl From<VerboseError<&str>> for VerboseError<String>

§

impl From<VerboseError<&[u8]>> for VerboseError<Vec<u8>>

§

impl From<Vmar> for NullableHandle

§

impl From<Vmo> for NullableHandle

§

impl From<WritableSynchronousProxy> for NullableHandle

Available on Fuchsia only.
1.17.0 (const: unstable) · Source§

impl From<[u8; 4]> for IpAddr

1.9.0 (const: unstable) · Source§

impl From<[u8; 4]> for Ipv4Addr

1.17.0 (const: unstable) · Source§

impl From<[u8; 16]> for IpAddr

1.9.0 (const: unstable) · Source§

impl From<[u8; 16]> for Ipv6Addr

1.17.0 (const: unstable) · Source§

impl From<[u16; 8]> for IpAddr

1.16.0 (const: unstable) · Source§

impl From<[u16; 8]> for Ipv6Addr

Source§

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

1.0.0 · Source§

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

Available on non-no_global_oom_handling only.
Source§

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

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>

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>

Available on non-no_global_oom_handling only.
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>

Source§

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

Source§

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

Available on crate feature alloc only.
Source§

impl<'a> From<&'a BStr> for BString

Source§

impl<'a> From<&'a BString> for Cow<'a, BStr>

§

impl<'a> From<&'a BackingBuffer> for BlockIterator<'a>

§

impl<'a> From<&'a BoundedBorrowedName<cm_types::::BorrowedName::{constant#0}>> for &'a BoundedBorrowedName<cm_types::::BorrowedLongName::{constant#0}>

Source§

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

Source§

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

1.6.0 · Source§

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

Available on non-no_global_oom_handling only.
1.0.0 · Source§

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

Available on non-no_global_oom_handling only.
Source§

impl<'a> From<Cow<'a, str>> for serde_json::value::Value

1.14.0 · Source§

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

Available on non-no_global_oom_handling only.
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

§

impl<'a> From<Pin<Box<dyn Future<Output = ()> + 'a>>> for LocalFutureObj<'a, ()>

§

impl<'a> From<Pin<Box<dyn Future<Output = ()> + Send + 'a>>> for FutureObj<'a, ()>

§

impl<'a> From<Box<dyn Future<Output = ()> + 'a>> for LocalFutureObj<'a, ()>

§

impl<'a> From<Box<dyn Future<Output = ()> + Send + 'a>> for FutureObj<'a, ()>

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>

Available on non-no_global_oom_handling only.
1.6.0 · Source§

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

Available on non-no_global_oom_handling only.
1.0.0 · Source§

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

Available on non-no_global_oom_handling only.
1.28.0 · Source§

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

1.6.0 · Source§

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

Source§

impl<'a> From<BString> for Cow<'a, BStr>

§

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

Available on crate feature alloc only.
§

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

Available on crate feature alloc only.
1.22.0 · Source§

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

Available on non-no_global_oom_handling only.
1.22.0 · Source§

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

Available on non-no_global_oom_handling only.
§

impl<'a, A> From<&'a [<A as Array>::Item]> for SmallVec<A>
where A: Array, <A as Array>::Item: Clone,

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,

Available on non-no_global_oom_handling only.
1.0.0 · Source§

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

Available on non-no_global_oom_handling only.
§

impl<'a, F> From<Pin<Box<F>>> for FutureObj<'a, ()>
where F: Future<Output = ()> + Send + 'a,

§

impl<'a, F> From<Pin<Box<F>>> for LocalFutureObj<'a, ()>
where F: Future<Output = ()> + 'a,

§

impl<'a, F> From<Box<F>> for FutureObj<'a, ()>
where F: Future<Output = ()> + Send + 'a,

§

impl<'a, F> From<Box<F>> for LocalFutureObj<'a, ()>
where F: Future<Output = ()> + '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>>,

1.8.0 · Source§

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

§

impl<'a, T> From<FutureObj<'a, T>> for LocalFutureObj<'a, T>

1.77.0 · Source§

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

§

impl<'a, const N: usize> From<&'a BoundedBorrowedName<N>> for &'a str

§

impl<'a, const N: usize> From<&'a BoundedName<N>> for &'a FlyStr

Source§

impl<'a, const N: usize> From<&'a [u8; N]> for &'a BStr

Source§

impl<'a, const N: usize> From<&'a [u8; N]> for BString

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_filled if part of the buffer is known to be already filled.

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.

§

impl<'g, T> From<Shared<'g, T>> for Atomic<T>
where T: Pointable + ?Sized,

Source§

impl<'k> From<&'k str> for Key<'k>

§

impl<'s, S> From<&'s S> for SockRef<'s>
where S: AsFd,

Available on Unix only.

On Windows, a corresponding From<&impl AsSocket> implementation exists.

§

impl<'s, T> From<&'s mut [T]> for SliceVec<'s, T>

§

impl<'s, T, A> From<&'s mut A> for SliceVec<'s, T>
where A: AsMut<[T]>,

Source§

impl<'v> From<&'v bool> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v char> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v f32> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v f64> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v i8> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v i16> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v i32> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v i64> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v i128> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v isize> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v str> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v u8> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v u16> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v u32> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v u64> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v u128> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v usize> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<i8>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<i16>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<i32>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<i64>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<i128>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<isize>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<u8>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<u16>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<u32>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<u64>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<u128>> for log::kv::value::Value<'v>

Source§

impl<'v> From<&'v NonZero<usize>> for log::kv::value::Value<'v>

Source§

impl<'v> From<bool> for log::kv::value::Value<'v>

Source§

impl<'v> From<char> for log::kv::value::Value<'v>

Source§

impl<'v> From<f32> for log::kv::value::Value<'v>

Source§

impl<'v> From<f64> for log::kv::value::Value<'v>

Source§

impl<'v> From<i8> for log::kv::value::Value<'v>

Source§

impl<'v> From<i16> for log::kv::value::Value<'v>

Source§

impl<'v> From<i32> for log::kv::value::Value<'v>

Source§

impl<'v> From<i64> for log::kv::value::Value<'v>

Source§

impl<'v> From<i128> for log::kv::value::Value<'v>

Source§

impl<'v> From<isize> for log::kv::value::Value<'v>

Source§

impl<'v> From<u8> for log::kv::value::Value<'v>

Source§

impl<'v> From<u16> for log::kv::value::Value<'v>

Source§

impl<'v> From<u32> for log::kv::value::Value<'v>

Source§

impl<'v> From<u64> for log::kv::value::Value<'v>

Source§

impl<'v> From<u128> for log::kv::value::Value<'v>

Source§

impl<'v> From<usize> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<i8>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<i16>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<i32>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<i64>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<i128>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<isize>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<u8>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<u16>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<u32>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<u64>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<u128>> for log::kv::value::Value<'v>

Source§

impl<'v> From<NonZero<usize>> for log::kv::value::Value<'v>

§

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,

§

impl<A> From<Vec<<A as Array>::Item>> for SmallVec<A>
where A: Array,

§

impl<A> From<A> for ArrayVec<A>
where A: Array,

§

impl<A> From<A> for SmallVec<A>
where A: Array,

§

impl<A> From<A> for TinyVec<A>
where A: Array,

§

impl<A> From<ArrayVec<A>> for TinyVec<A>
where A: Array,

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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 anyhow::Error
where E: Error + Send + Sync + 'static,

Available on crate feature std or non-anyhow_no_core_error only.
1.17.0 (const: unstable) · Source§

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

§

impl<K, T> From<Interrupt<K, T>> for NullableHandle
where K: InterruptKind, T: Timeline,

§

impl<K, T> From<NullableHandle> for Interrupt<K, T>
where K: InterruptKind, T: Timeline,

§

impl<K, V> From<HashMap<K, V, RandomState>> for AHashMap<K, V>

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<K, V, const N: usize> From<[(K, V); N]> for IndexMap<K, V>
where K: Hash + Eq,

Available on has_std only.
§

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

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<L, R> From<Either<L, R>> for Result<R, L>

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

Source§

impl<O> From<f32> for F32<O>
where O: ByteOrder,

Source§

impl<O> From<f64> for F64<O>
where O: ByteOrder,

Source§

impl<O> From<i16> for I16<O>
where O: ByteOrder,

Source§

impl<O> From<i32> for I32<O>
where O: ByteOrder,

Source§

impl<O> From<i64> for I64<O>
where O: ByteOrder,

Source§

impl<O> From<i128> for I128<O>
where O: ByteOrder,

Source§

impl<O> From<isize> for Isize<O>
where O: ByteOrder,

Source§

impl<O> From<u16> for U16<O>
where O: ByteOrder,

Source§

impl<O> From<u32> for U32<O>
where O: ByteOrder,

Source§

impl<O> From<u64> for U64<O>
where O: ByteOrder,

Source§

impl<O> From<u128> for U128<O>
where O: ByteOrder,

Source§

impl<O> From<usize> for Usize<O>
where O: ByteOrder,

Source§

impl<O> From<F32<O>> for f32
where O: ByteOrder,

Source§

impl<O> From<F32<O>> for f64
where O: ByteOrder,

Source§

impl<O> From<F32<O>> for [u8; 4]
where O: ByteOrder,

Source§

impl<O> From<F64<O>> for f64
where O: ByteOrder,

Source§

impl<O> From<F64<O>> for [u8; 8]
where O: ByteOrder,

Source§

impl<O> From<I16<O>> for i16
where O: ByteOrder,

Source§

impl<O> From<I16<O>> for i32
where O: ByteOrder,

Source§

impl<O> From<I16<O>> for i64
where O: ByteOrder,

Source§

impl<O> From<I16<O>> for i128
where O: ByteOrder,

Source§

impl<O> From<I16<O>> for isize
where O: ByteOrder,

Source§

impl<O> From<I16<O>> for [u8; 2]
where O: ByteOrder,

Source§

impl<O> From<I32<O>> for i32
where O: ByteOrder,

Source§

impl<O> From<I32<O>> for i64
where O: ByteOrder,

Source§

impl<O> From<I32<O>> for i128
where O: ByteOrder,

Source§

impl<O> From<I32<O>> for [u8; 4]
where O: ByteOrder,

Source§

impl<O> From<I64<O>> for i64
where O: ByteOrder,

Source§

impl<O> From<I64<O>> for i128
where O: ByteOrder,

Source§

impl<O> From<I64<O>> for [u8; 8]
where O: ByteOrder,

Source§

impl<O> From<I128<O>> for i128
where O: ByteOrder,

Source§

impl<O> From<I128<O>> for [u8; 16]
where O: ByteOrder,

Source§

impl<O> From<Isize<O>> for isize
where O: ByteOrder,

Source§

impl<O> From<Isize<O>> for [u8; 8]
where O: ByteOrder,

Source§

impl<O> From<U16<O>> for u16
where O: ByteOrder,

Source§

impl<O> From<U16<O>> for u32
where O: ByteOrder,

Source§

impl<O> From<U16<O>> for u64
where O: ByteOrder,

Source§

impl<O> From<U16<O>> for u128
where O: ByteOrder,

Source§

impl<O> From<U16<O>> for usize
where O: ByteOrder,

Source§

impl<O> From<U16<O>> for [u8; 2]
where O: ByteOrder,

Source§

impl<O> From<U32<O>> for u32
where O: ByteOrder,

Source§

impl<O> From<U32<O>> for u64
where O: ByteOrder,

Source§

impl<O> From<U32<O>> for u128
where O: ByteOrder,

Source§

impl<O> From<U32<O>> for [u8; 4]
where O: ByteOrder,

Source§

impl<O> From<U64<O>> for u64
where O: ByteOrder,

Source§

impl<O> From<U64<O>> for u128
where O: ByteOrder,

Source§

impl<O> From<U64<O>> for [u8; 8]
where O: ByteOrder,

Source§

impl<O> From<U128<O>> for u128
where O: ByteOrder,

Source§

impl<O> From<U128<O>> for [u8; 16]
where O: ByteOrder,

Source§

impl<O> From<Usize<O>> for usize
where O: ByteOrder,

Source§

impl<O> From<Usize<O>> for [u8; 8]
where O: ByteOrder,

Source§

impl<O> From<[u8; 2]> for I16<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 2]> for U16<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 4]> for F32<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 4]> for I32<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 4]> for U32<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 8]> for F64<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 8]> for I64<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 8]> for Isize<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 8]> for U64<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 8]> for Usize<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 16]> for I128<O>
where O: ByteOrder,

Source§

impl<O> From<[u8; 16]> for U128<O>
where O: ByteOrder,

Source§

impl<O, P> From<F32<O>> for F64<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I16<O>> for I32<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I16<O>> for I64<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I16<O>> for I128<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I16<O>> for Isize<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I32<O>> for I64<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I32<O>> for I128<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<I64<O>> for I128<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U16<O>> for U32<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U16<O>> for U64<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U16<O>> for U128<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U16<O>> for Usize<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U32<O>> for U64<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U32<O>> for U128<P>
where O: ByteOrder, P: ByteOrder,

Source§

impl<O, P> From<U64<O>> for U128<P>
where O: ByteOrder, P: ByteOrder,

§

impl<R, G, T> From<T> for ReentrantMutex<R, G, T>
where R: RawMutex, G: GetThreadId,

§

impl<R, T> From<T> for Mutex<R, T>
where R: RawMutex,

§

impl<R, T> From<T> for RwLock<R, T>
where R: RawRwLock,

§

impl<R, W> From<Fifo> for Fifo<R, W>

§

impl<R, W> From<Fifo<R, W>> for Fifo<R, W>

§

impl<R, W> From<Fifo<R, W>> for NullableHandle

§

impl<R, W> From<NullableHandle> for Fifo<R, W>

§

impl<Reference, Output> From<zx_clock_details_v1_t> for ClockDetails<Reference, Output>
where Reference: Timeline, Output: Timeline,

§

impl<Reference, Output> From<zx_clock_transformation_t> for ClockTransformation<Reference, Output>
where Reference: Timeline, Output: Timeline,

§

impl<Reference, Output> From<Clock<Reference, Output>> for NullableHandle
where Reference: Timeline, Output: Timeline,

§

impl<Reference, Output> From<NullableHandle> for Clock<Reference, Output>
where Reference: Timeline, Output: Timeline,

Source§

impl<Src, Dst> From<ConvertError<AlignmentError<Src, Dst>, SizeError<Src, Dst>, Infallible>> for ConvertError<AlignmentError<Src, Dst>, SizeError<Src, Dst>, ValidityError<Src, Dst>>
where Dst: TryFromBytes + ?Sized,

Source§

impl<Src, Dst> From<ConvertError<AlignmentError<Src, Dst>, SizeError<Src, Dst>, Infallible>> for SizeError<Src, Dst>
where Dst: Unaligned + ?Sized,

Source§

impl<Src, Dst> From<AlignmentError<Src, Dst>> for Infallible
where Dst: Unaligned + ?Sized,

Source§

impl<Src, Dst, A, S> From<ValidityError<Src, Dst>> for ConvertError<A, S, ValidityError<Src, Dst>>
where Dst: TryFromBytes + ?Sized,

Source§

impl<Src, Dst, A, V> From<SizeError<Src, Dst>> for ConvertError<A, SizeError<Src, Dst>, V>
where Dst: ?Sized,

Source§

impl<Src, Dst, S, V> From<ConvertError<AlignmentError<Src, Dst>, S, V>> for ConvertError<Infallible, S, V>
where Dst: Unaligned + ?Sized,

Source§

impl<Src, Dst, S, V> From<AlignmentError<Src, Dst>> for ConvertError<AlignmentError<Src, Dst>, S, V>
where Dst: ?Sized,

Source§

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

1.17.0 · Source§

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

Available on non-no_global_oom_handling only.
1.21.0 · Source§

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

Available on non-no_global_oom_handling only.
1.21.0 · Source§

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

Available on non-no_global_oom_handling only.
1.0.0 · Source§

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

Available on non-no_global_oom_handling only.
1.84.0 · Source§

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

Available on non-no_global_oom_handling only.
1.84.0 · Source§

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

Available on non-no_global_oom_handling only.
1.84.0 · Source§

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

Available on non-no_global_oom_handling only.
1.19.0 · Source§

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

Available on non-no_global_oom_handling only.
Source§

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

§

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

1.45.0 · Source§

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

Available on non-no_global_oom_handling only.
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 PtrKey<T>

§

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

§

impl<T> From<*const T> for Shared<'_, T>

1.23.0 (const: unstable) · Source§

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

Available on target_has_atomic_load_store=ptr only.
1.25.0 (const: unstable) · 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 (const: unstable) · 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<uaddr32> for uref32<T>

Source§

impl<T> From<uaddr32> for uref<T>

Source§

impl<T> From<uaddr> for uref<T>

Source§

impl<T> From<uref32<T>> for uref<T>

Source§

impl<T> From<uref<T>> for UserRef<T>

Source§

impl<T> From<UserAddress> for UserRef<T>

Source§

impl<T> From<UserRef<T>> for uref<T>

Source§

impl<T> From<UserRef<T>> for UserAddress

1.31.0 (const: unstable) · Source§

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

Source§

impl<T> From<Range<T>> for starnix_uapi::arch32::__static_assertions::_core::range::Range<T>

Source§

impl<T> From<RangeFrom<T>> for starnix_uapi::arch32::__static_assertions::_core::range::RangeFrom<T>

Source§

impl<T> From<RangeInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::range::RangeInclusive<T>

Source§

impl<T> From<RangeToInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::range::RangeToInclusive<T>

Source§

impl<T> From<Range<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::Range<T>

Source§

impl<T> From<RangeFrom<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::RangeFrom<T>

Source§

impl<T> From<RangeInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::RangeInclusive<T>

Source§

impl<T> From<RangeToInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::RangeToInclusive<T>

§

impl<T> From<Duration> for Duration<T>
where T: Timeline,

§

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

§

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

§

impl<T> From<Box<[(T, T)]>> for DirectedGraph<T>
where T: Clone + PartialEq + Hash + Ord + Debug + Display,

Source§

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

§

impl<T> From<Vec<T>> for SingleOrVec<T>

§

impl<T> From<HashSet<T, RandomState>> for AHashSet<T>

Source§

impl<T> From<SendError<T>> for std::sync::mpmc::error::SendTimeoutError<T>

1.24.0 · Source§

impl<T> From<SendError<T>> for std::sync::mpsc::TrySendError<T>

1.0.0 · Source§

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

§

impl<T> From<Channel> for ClientEnd<T>

§

impl<T> From<Channel> for ServerEnd<T>

§

impl<T> From<ClientEnd<T>> for Channel

§

impl<T> From<ClientEnd<T>> for NullableHandle

§

impl<T> From<JoinHandle<T>> for Task<T>

§

impl<T> From<NullableHandle> for ClientEnd<T>

§

impl<T> From<NullableHandle> for ServerEnd<T>

§

impl<T> From<NullableHandle> for Timer<T>
where T: Timeline,

§

impl<T> From<Owned<T>> for Atomic<T>
where T: Pointable + ?Sized,

§

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

§

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

§

impl<T> From<ServerEnd<T>> for Channel

§

impl<T> From<ServerEnd<T>> for NullableHandle

1.12.0 (const: unstable) · Source§

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

1.36.0 (const: unstable) · Source§

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

1.12.0 (const: unstable) · Source§

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

1.70.0 (const: unstable) · Source§

impl<T> From<T> for starnix_uapi::arch32::__static_assertions::_core::cell::OnceCell<T>

1.12.0 (const: unstable) · Source§

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

Source§

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

1.12.0 (const: unstable) · Source§

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

Source§

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

Source§

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

1.6.0 · Source§

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

Available on non-no_global_oom_handling only.
1.6.0 · Source§

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

Available on non-no_global_oom_handling only.
1.6.0 · Source§

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

Available on non-no_global_oom_handling only.
Source§

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

Source§

impl<T> From<T> for std::sync::nonpoison::rwlock::RwLock<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>

1.24.0 · Source§

impl<T> From<T> for std::sync::poison::rwlock::RwLock<T>

Source§

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

§

impl<T> From<T> for Atomic<T>

§

impl<T> From<T> for AtomicCell<T>

§

impl<T> From<T> for CachePadded<T>

§

impl<T> From<T> for Fragile<T>

§

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

§

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

§

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

§

impl<T> From<T> for Owned<T>

§

impl<T> From<T> for SemiSticky<T>

§

impl<T> From<T> for ShardedLock<T>

§

impl<T> From<T> for SingleOrVec<T>

§

impl<T> From<T> for Sticky<T>

1.0.0 (const: unstable) · Source§

impl<T> From<T> for T

§

impl<T> From<Timer<T>> for NullableHandle
where T: Timeline,

§

impl<T, A> From<&[T]> for TinyVec<A>
where T: Clone + Default, A: Array<Item = T>,

§

impl<T, A> From<&mut [T]> for TinyVec<A>
where T: Clone + Default, A: Array<Item = 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.21.0 · Source§

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

Available on non-no_global_oom_handling only.
1.21.0 · Source§

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

Available on non-no_global_oom_handling only.
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,

Available on non-no_global_oom_handling only.
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,

Available on non-no_global_oom_handling only.
1.21.0 · Source§

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

Available on non-no_global_oom_handling only.
§

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

Source§

impl<T, T64, T32> From<uref32<T32>> for MappingMultiArchUserRef<T, T64, T32>

Source§

impl<T, T64, T32> From<uref<T64>> for MappingMultiArchUserRef<T, T64, T32>

Source§

impl<T, T64, T32> From<UserRef<T64>> for MappingMultiArchUserRef<T, T64, T32>

Source§

impl<T, const CAP: usize> From<[T; CAP]> for arrayvec::arrayvec::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,

Available on non-no_global_oom_handling only.
1.74.0 · Source§

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

Available on non-no_global_oom_handling only.
Source§

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

Source§

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

1.45.0 · Source§

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

Available on non-no_global_oom_handling only.
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]>

Available on non-no_global_oom_handling only.
1.74.0 · Source§

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

Available on non-no_global_oom_handling only.
1.44.0 · Source§

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

Available on non-no_global_oom_handling only.
1.56.0 · Source§

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

Source§

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

Available on has_std only.
§

impl<T, const N: usize> From<[T; N]> for AHashSet<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>

§

impl<T, const N: usize> From<[(T, T); N]> for DirectedGraph<T>
where T: Clone + PartialEq + Hash + Ord + Debug + Display,

Source§

impl<T: Copy + Eq + IntoBytes + FromBytes + Immutable> From<T> for UserValue<T>

Source§

impl<Tz> From<DateTime<Tz>> for SystemTime
where Tz: TimeZone,

Available on crate feature std only.
§

impl<Val, Rate, Err, Ref, Out> From<ClockUpdateBuilder<Val, Rate, Err, Ref, Out>> for ClockUpdate<Ref, Out>
where Val: ValueState<ReferenceTimeline = Ref, OutputTimeline = Out>, Rate: RateState, Err: ErrorState, Ref: Timeline, Out: Timeline,

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

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

Available on target_has_atomic=ptr only.
1.51.0 · Source§

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

Available on target_has_atomic=ptr only.
1.0.0 · Source§

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

§

impl<const N: usize> From<&BoundedBorrowedName<N>> for BoundedName<N>

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>

§

impl<const N: usize> From<BoundedName<N>> for String

§

impl<const N: usize> From<BoundedName<N>> for FlyStr

Source§

impl<const N: usize> From<[u8; N]> for BString

§

impl<const N: usize> From<[u8; N]> for FlyByteStr