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 UimpliesInto<U> for TFromis reflexive, which means thatFrom<T> for Tis 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
TryFrominstead; don’t provide aFromimpl 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 usingu16: TryFrom<i32>. AndString: From<&str>exists, where you can get something equivalent to the original value viaDeref. ButFromcannot be used to convert fromu32tou16, 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 u8is lossless, sinceascasting back can recover the original value, but that conversion is not available viaFrombecause-1and255are different conceptual values (despite being identical bit patterns technically). Butf32: From<i16>is available because1_i16and1.0_f32are conceptually the same real number (despite having very different bit patterns technically).String: From<char>is available because they’re both text, butString: From<u32>is not available, since1(a number) and"1"(text) are too different. (Converting values to text is instead covered by theDisplaytrait.) -
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_bytesis a method and how integers have methods likeu32::from_ne_bytes,u32::from_le_bytes, andu32::from_be_bytes, none of which areFromimplementations. Whereas there’s only one reasonable way to wrap anIpv6Addrinto anIpAddr, thusIpAddr: 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§
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§
impl From<&str> for serde_json::value::Value
impl From<&str> for Box<str>
no_global_oom_handling only.impl From<&str> for Rc<str>
no_global_oom_handling only.impl From<&str> for String
no_global_oom_handling only.impl From<&str> for Arc<str>
no_global_oom_handling only.impl From<&str> for Vec<u8>
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
impl From<&CStr> for Box<CStr>
impl From<&CStr> for CString
impl From<&CStr> for Rc<CStr>
impl From<&CStr> for Arc<CStr>
target_has_atomic=ptr only.impl From<&Box<str>> for FlyByteStr
impl From<&Box<str>> for FlyStr
impl From<&Box<[u8]>> for FlyByteStr
impl From<&String> for String
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
impl From<&OsStr> for Box<OsStr>
impl From<&OsStr> for Rc<OsStr>
impl From<&OsStr> for Arc<OsStr>
impl From<&Path> for Box<Path>
impl From<&Path> for Rc<Path>
impl From<&Path> for Arc<Path>
impl From<&BStr> for FlyByteStr
impl From<&zx_restricted_state_t> for zx_thread_state_general_regs_t
impl From<&zx_thread_state_general_regs_t> for zx_restricted_state_t
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
impl From<&mut str> for Box<str>
no_global_oom_handling only.impl From<&mut str> for Rc<str>
no_global_oom_handling only.impl From<&mut str> for String
no_global_oom_handling only.impl From<&mut str> for Arc<str>
no_global_oom_handling only.impl From<&mut CStr> for Box<CStr>
impl From<&mut CStr> for Rc<CStr>
impl From<&mut CStr> for Arc<CStr>
target_has_atomic=ptr only.impl From<&mut OsStr> for Box<OsStr>
impl From<&mut OsStr> for Rc<OsStr>
impl From<&mut OsStr> for Arc<OsStr>
impl From<&mut Path> for Box<Path>
impl From<&mut Path> for Rc<Path>
impl From<&mut Path> for Arc<Path>
impl From<AsciiChar> for char
impl From<AsciiChar> for u8
impl From<AsciiChar> for u16
impl From<AsciiChar> for u32
impl From<AsciiChar> for u64
impl From<AsciiChar> for u128
impl From<SocketAddr> for SockAddr
impl From<Result<(), Status>> for Status
impl From<Infallible> for TryFromSliceError
impl From<Infallible> for TryFromIntError
impl From<Cow<'_, str>> for Box<str>
no_global_oom_handling only.impl From<Cow<'_, str>> for StringReference
Allocates an Arc<String> from data
impl From<Cow<'_, CStr>> for Box<CStr>
impl From<Cow<'_, OsStr>> for Box<OsStr>
impl From<Cow<'_, Path>> for Box<Path>
impl From<TryReserveErrorKind> for TryReserveError
impl From<TryLockError> for std::io::error::Error
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.
impl From<ErrorKind> for Status
impl From<bool> for serde_json::value::Value
impl From<bool> for f16
impl From<bool> for f32
impl From<bool> for f64
impl From<bool> for f128
impl From<bool> for i8
impl From<bool> for i16
impl From<bool> for i32
impl From<bool> for i64
impl From<bool> for i128
impl From<bool> for isize
impl From<bool> for u8
impl From<bool> for u16
impl From<bool> for u32
impl From<bool> for u64
impl From<bool> for u128
impl From<bool> for usize
impl From<bool> for AtomicBool
target_has_atomic_load_store=8 only.impl From<bool> for ConfigSingleValue
impl From<bool> for ConfigValue
impl From<bool> for Schema
impl From<char> for u32
impl From<char> for u64
impl From<char> for u128
impl From<char> for String
no_global_oom_handling only.impl From<f16> for f64
impl From<f16> for f128
impl From<f32> for serde_json::value::Value
impl From<f32> for f64
impl From<f32> for f128
impl From<f64> for serde_json::value::Value
impl From<f64> for f128
impl From<i8> for serde_json::value::Value
impl From<i8> for f16
impl From<i8> for f32
impl From<i8> for f64
impl From<i8> for f128
impl From<i8> for i16
impl From<i8> for i32
impl From<i8> for i64
impl From<i8> for i128
impl From<i8> for isize
impl From<i8> for AtomicI8
impl From<i8> for Number
impl From<i8> for ConfigSingleValue
impl From<i8> for ConfigValue
impl From<i16> for serde_json::value::Value
impl From<i16> for f32
impl From<i16> for f64
impl From<i16> for f128
impl From<i16> for i32
impl From<i16> for i64
impl From<i16> for i128
impl From<i16> for isize
impl From<i16> for AtomicI16
impl From<i16> for Number
impl From<i16> for ConfigSingleValue
impl From<i16> for ConfigValue
impl From<i32> for serde_json::value::Value
impl From<i32> for f64
impl From<i32> for f128
impl From<i32> for i64
impl From<i32> for i128
impl From<i32> for AtomicI32
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
impl From<i64> for serde_json::value::Value
impl From<i64> for i128
impl From<i64> for AtomicI64
impl From<i64> for Number
impl From<i64> for ConfigSingleValue
impl From<i64> for ConfigValue
impl From<i128> for AtomicI128
impl From<isize> for serde_json::value::Value
impl From<isize> for AtomicIsize
impl From<isize> for Number
impl From<!> for Infallible
impl From<!> for TryFromIntError
impl From<u8> for serde_json::value::Value
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.
impl From<u8> for f16
impl From<u8> for f32
impl From<u8> for f64
impl From<u8> for f128
impl From<u8> for i16
impl From<u8> for i32
impl From<u8> for i64
impl From<u8> for i128
impl From<u8> for isize
impl From<u8> for u16
impl From<u8> for u32
impl From<u8> for u64
impl From<u8> for u128
impl From<u8> for usize
impl From<u8> for AtomicU8
impl From<u8> for ExitCode
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
impl From<u16> for serde_json::value::Value
impl From<u16> for f32
impl From<u16> for f64
impl From<u16> for f128
impl From<u16> for i32
impl From<u16> for i64
impl From<u16> for i128
impl From<u16> for u32
impl From<u16> for u64
impl From<u16> for u128
impl From<u16> for usize
impl From<u16> for AtomicU16
impl From<u16> for Number
impl From<u16> for ConfigSingleValue
impl From<u16> for ConfigValue
impl From<u32> for serde_json::value::Value
impl From<u32> for f64
impl From<u32> for f128
impl From<u32> for i64
impl From<u32> for i128
impl From<u32> for u64
impl From<u32> for u128
impl From<u32> for UncheckedSignal
impl From<u32> for UserAddress32
impl From<u32> for Ipv4Addr
impl From<u32> for AtomicU32
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
impl From<u64> for serde_json::value::Value
impl From<u64> for i128
impl From<u64> for u128
impl From<u64> for SigSet
impl From<u64> for UserAddress
impl From<u64> for AtomicU64
impl From<u64> for Number
impl From<u64> for ConfigSingleValue
impl From<u64> for ConfigValue
impl From<u128> for Ipv6Addr
impl From<u128> for AtomicU128
impl From<()> for serde_json::value::Value
impl From<usize> for serde_json::value::Value
impl From<usize> for AtomicUsize
impl From<usize> for Number
impl From<Credentials> for FsCred
impl From<Errno> for Status
impl From<IptIpInverseFlags> for u64
impl From<SigSet> for sigset_t
impl From<Signal> for SigSet
impl From<Signal> for UncheckedSignal
impl From<statfs> for statfs64
impl From<uaddr32> for uaddr
impl From<uaddr32> for UserAddress
impl From<uaddr> for UserAddress
impl From<UserAddress32> for UserAddress
impl From<UserAddress> for u64
impl From<UserAddress> for uaddr
impl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for CollectionAllocErr
impl From<__m128> for Simd<f32, 4>
impl From<__m128d> for Simd<f64, 2>
impl From<__m128i> for Simd<i8, 16>
impl From<__m128i> for Simd<i16, 8>
impl From<__m128i> for Simd<i32, 4>
impl From<__m128i> for Simd<i64, 2>
impl From<__m128i> for Simd<isize, 2>
impl From<__m128i> for Simd<u8, 16>
impl From<__m128i> for Simd<u16, 8>
impl From<__m128i> for Simd<u32, 4>
impl From<__m128i> for Simd<u64, 2>
impl From<__m128i> for Simd<usize, 2>
impl From<__m256> for Simd<f32, 8>
impl From<__m256d> for Simd<f64, 4>
impl From<__m256i> for Simd<i8, 32>
impl From<__m256i> for Simd<i16, 16>
impl From<__m256i> for Simd<i32, 8>
impl From<__m256i> for Simd<i64, 4>
impl From<__m256i> for Simd<isize, 4>
impl From<__m256i> for Simd<u8, 32>
impl From<__m256i> for Simd<u16, 16>
impl From<__m256i> for Simd<u32, 8>
impl From<__m256i> for Simd<u64, 4>
impl From<__m256i> for Simd<usize, 4>
impl From<__m512> for Simd<f32, 16>
impl From<__m512d> for Simd<f64, 8>
impl From<__m512i> for Simd<i8, 64>
impl From<__m512i> for Simd<i16, 32>
impl From<__m512i> for Simd<i32, 16>
impl From<__m512i> for Simd<i64, 8>
impl From<__m512i> for Simd<isize, 8>
impl From<__m512i> for Simd<u8, 64>
impl From<__m512i> for Simd<u16, 32>
impl From<__m512i> for Simd<u32, 16>
impl From<__m512i> for Simd<u64, 8>
impl From<__m512i> for Simd<usize, 8>
impl From<Error> for log::kv::error::Error
impl From<Ipv4Addr> for IpAddr
impl From<Ipv4Addr> for u32
impl From<Ipv6Addr> for IpAddr
impl From<Ipv6Addr> for u128
impl From<SocketAddrV4> for SocketAddr
impl From<SocketAddrV4> for SockAddr
impl From<SocketAddrV6> for SocketAddr
impl From<SocketAddrV6> for SockAddr
impl From<NonZero<i8>> for NonZero<i16>
impl From<NonZero<i8>> for NonZero<i32>
impl From<NonZero<i8>> for NonZero<i64>
impl From<NonZero<i8>> for NonZero<i128>
impl From<NonZero<i8>> for NonZero<isize>
impl From<NonZero<i16>> for NonZero<i32>
impl From<NonZero<i16>> for NonZero<i64>
impl From<NonZero<i16>> for NonZero<i128>
impl From<NonZero<i16>> for NonZero<isize>
impl From<NonZero<i32>> for NonZero<i64>
impl From<NonZero<i32>> for NonZero<i128>
impl From<NonZero<i64>> for NonZero<i128>
impl From<NonZero<u8>> for NonZero<i16>
impl From<NonZero<u8>> for NonZero<i32>
impl From<NonZero<u8>> for NonZero<i64>
impl From<NonZero<u8>> for NonZero<i128>
impl From<NonZero<u8>> for NonZero<isize>
impl From<NonZero<u8>> for NonZero<u16>
impl From<NonZero<u8>> for NonZero<u32>
impl From<NonZero<u8>> for NonZero<u64>
impl From<NonZero<u8>> for NonZero<u128>
impl From<NonZero<u8>> for NonZero<usize>
impl From<NonZero<u16>> for NonZero<i32>
impl From<NonZero<u16>> for NonZero<i64>
impl From<NonZero<u16>> for NonZero<i128>
impl From<NonZero<u16>> for NonZero<u32>
impl From<NonZero<u16>> for NonZero<u64>
impl From<NonZero<u16>> for NonZero<u128>
impl From<NonZero<u16>> for NonZero<usize>
impl From<NonZero<u32>> for NonZero<i64>
impl From<NonZero<u32>> for NonZero<i128>
impl From<NonZero<u32>> for NonZero<u64>
impl From<NonZero<u32>> for NonZero<u128>
impl From<NonZero<u64>> for NonZero<i128>
impl From<NonZero<u64>> for NonZero<u128>
impl From<NonZero<u64>> for BugRef
impl From<Alignment> for usize
impl From<Alignment> for NonZero<usize>
impl From<Simd<f32, 4>> for __m128
impl From<Simd<f32, 8>> for __m256
impl From<Simd<f32, 16>> for __m512
impl From<Simd<f64, 2>> for __m128d
impl From<Simd<f64, 4>> for __m256d
impl From<Simd<f64, 8>> for __m512d
impl From<Simd<i8, 16>> for __m128i
impl From<Simd<i8, 32>> for __m256i
impl From<Simd<i8, 64>> for __m512i
impl From<Simd<i16, 8>> for __m128i
impl From<Simd<i16, 16>> for __m256i
impl From<Simd<i16, 32>> for __m512i
impl From<Simd<i32, 4>> for __m128i
impl From<Simd<i32, 8>> for __m256i
impl From<Simd<i32, 16>> for __m512i
impl From<Simd<i64, 2>> for __m128i
impl From<Simd<i64, 4>> for __m256i
impl From<Simd<i64, 8>> for __m512i
impl From<Simd<isize, 2>> for __m128i
impl From<Simd<isize, 4>> for __m256i
impl From<Simd<isize, 8>> for __m512i
impl From<Simd<u8, 16>> for __m128i
impl From<Simd<u8, 32>> for __m256i
impl From<Simd<u8, 64>> for __m512i
impl From<Simd<u16, 8>> for __m128i
impl From<Simd<u16, 16>> for __m256i
impl From<Simd<u16, 32>> for __m512i
impl From<Simd<u32, 4>> for __m128i
impl From<Simd<u32, 8>> for __m256i
impl From<Simd<u32, 16>> for __m512i
impl From<Simd<u64, 2>> for __m128i
impl From<Simd<u64, 4>> for __m256i
impl From<Simd<u64, 8>> for __m512i
impl From<Simd<usize, 2>> for __m128i
impl From<Simd<usize, 4>> for __m256i
impl From<Simd<usize, 8>> for __m512i
impl From<Box<str>> for String
impl From<Box<str>> for FlyByteStr
impl From<Box<str>> for FlyStr
impl From<Box<ByteStr>> for Box<[u8]>
impl From<Box<CStr>> for CString
impl From<Box<OsStr>> for OsString
impl From<Box<Path>> for PathBuf
impl From<Box<BStr>> for Box<[u8]>
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
impl From<Box<[u8]>> for Box<ByteStr>
impl From<Box<[u8]>> for Box<BStr>
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
impl From<ByteString> for Vec<u8>
impl From<TryReserveError> for std::io::error::Error
impl From<CString> for Box<CStr>
impl From<CString> for Rc<CStr>
impl From<CString> for Arc<CStr>
target_has_atomic=ptr only.impl From<CString> for Vec<u8>
impl From<NulError> for std::io::error::Error
impl From<NulError> for Status
impl From<Rc<str>> for Rc<[u8]>
impl From<Rc<ByteStr>> for Rc<[u8]>
no_rc only.impl From<Rc<[u8]>> for Rc<ByteStr>
no_rc only.impl From<String> for serde_json::value::Value
impl From<String> for Box<str>
no_global_oom_handling only.impl From<String> for Rc<str>
no_global_oom_handling only.impl From<String> for Arc<str>
no_global_oom_handling only.impl From<String> for Vec<u8>
impl From<String> for OsString
impl From<String> for PathBuf
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
impl From<Arc<str>> for Arc<[u8]>
impl From<Arc<str>> for StringReference
Consumes the input without allocation or copy
impl From<Arc<ByteStr>> for Arc<[u8]>
no_rc and non-no_sync and target_has_atomic=ptr only.impl From<Arc<[u8]>> for Arc<ByteStr>
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
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
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
impl From<OsString> for Box<OsStr>
impl From<OsString> for Rc<OsStr>
impl From<OsString> for Arc<OsStr>
impl From<OsString> for PathBuf
impl From<File> for OwnedFd
target_os=trusty only.impl From<File> for Stdio
impl From<Error> for log::kv::error::Error
impl From<Error> for Status
impl From<Error> for Error
impl From<Error> for GetTimezoneError
impl From<PipeReader> for OwnedFd
target_os=trusty only.impl From<PipeReader> for Stdio
impl From<PipeWriter> for OwnedFd
target_os=trusty only.impl From<PipeWriter> for Stdio
impl From<Stderr> for Stdio
impl From<Stdout> for Stdio
impl From<TcpListener> for OwnedFd
target_os=trusty only.impl From<TcpListener> for Socket
impl From<TcpStream> for OwnedFd
target_os=trusty only.impl From<TcpStream> for Socket
impl From<UdpSocket> for OwnedFd
target_os=trusty only.impl From<UdpSocket> for Socket
impl From<OwnedFd> for File
target_os=trusty only.impl From<OwnedFd> for PipeReader
target_os=trusty only.impl From<OwnedFd> for PipeWriter
target_os=trusty only.impl From<OwnedFd> for TcpListener
target_os=trusty only.impl From<OwnedFd> for TcpStream
target_os=trusty only.impl From<OwnedFd> for UdpSocket
target_os=trusty only.impl From<OwnedFd> for UnixDatagram
impl From<OwnedFd> for UnixListener
impl From<OwnedFd> for UnixStream
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.
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.
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.
impl From<OwnedFd> for Stdio
impl From<OwnedFd> for Socket
impl From<UnixDatagram> for OwnedFd
impl From<UnixDatagram> for Socket
impl From<UnixListener> for OwnedFd
impl From<UnixListener> for Socket
impl From<UnixStream> for OwnedFd
impl From<UnixStream> for Socket
impl From<PathBuf> for Box<Path>
impl From<PathBuf> for Rc<Path>
impl From<PathBuf> for Arc<Path>
impl From<PathBuf> for OsString
impl From<ChildStderr> for OwnedFd
impl From<ChildStderr> for Stdio
impl From<ChildStdin> for OwnedFd
impl From<ChildStdin> for Stdio
impl From<ChildStdout> for OwnedFd
impl From<ChildStdout> for Stdio
impl From<ExitStatusError> for ExitStatus
impl From<RecvError> for std::sync::mpsc::RecvTimeoutError
impl From<RecvError> for std::sync::mpsc::TryRecvError
impl From<SystemTime> for DateTime<Local>
clock only.impl From<SystemTime> for DateTime<Utc>
std only.impl From<Error> for Box<dyn Error + Send>
std or non-anyhow_no_core_error only.impl From<Error> for Box<dyn Error + Sync + Send>
std or non-anyhow_no_core_error only.impl From<Error> for Box<dyn Error>
std or non-anyhow_no_core_error only.impl From<DateTime<FixedOffset>> for DateTime<Local>
clock only.Convert a DateTime<FixedOffset> instance into a DateTime<Local> instance.
impl From<DateTime<FixedOffset>> for DateTime<Utc>
Convert a DateTime<FixedOffset> instance into a DateTime<Utc> instance.
impl From<DateTime<Local>> for DateTime<FixedOffset>
clock only.Convert a DateTime<Local> instance into a DateTime<FixedOffset> instance.
impl From<DateTime<Local>> for DateTime<Utc>
clock only.Convert a DateTime<Local> instance into a DateTime<Utc> instance.
impl From<DateTime<Utc>> for DateTime<FixedOffset>
Convert a DateTime<Utc> instance into a DateTime<FixedOffset> instance.
impl From<DateTime<Utc>> for DateTime<Local>
clock only.Convert a DateTime<Utc> instance into a DateTime<Local> instance.
impl From<NaiveDate> for NaiveDateTime
impl From<NaiveDateTime> for NaiveDate
impl From<Error> for std::io::error::Error
std only.impl From<Map<String, Value>> for serde_json::value::Value
impl From<Number> for serde_json::value::Value
impl From<Url> for String
String conversion.
impl From<BString> for Vec<u8>
impl From<BString> for FlyByteStr
impl From<Status> for Result<(), Status>
impl From<Status> for ErrorKind
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
impl From<AllowedOffers> for AllowedOffers
impl From<AllowedOffers> for AllowedOffers
impl From<ArchiveAccessorSynchronousProxy> for NullableHandle
impl From<AtRestFlags> for [u8; 2]
impl From<Availability> for Availability
impl From<Availability> for Availability
impl From<BatchIteratorSynchronousProxy> for NullableHandle
impl From<BinderSynchronousProxy> for NullableHandle
impl From<BlockIndex> for usize
impl From<BootControllerSynchronousProxy> for NullableHandle
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
impl From<CapabilityTypeName> for DirentType
impl From<Channel> for AdvisoryLockingSynchronousProxy
impl From<Channel> for ArchiveAccessorSynchronousProxy
impl From<Channel> for BatchIteratorSynchronousProxy
impl From<Channel> for BinderSynchronousProxy
impl From<Channel> for BootControllerSynchronousProxy
impl From<Channel> for CapabilityStoreSynchronousProxy
impl From<Channel> for Channel
impl From<Channel> for ChildIteratorSynchronousProxy
impl From<Channel> for CloneableSynchronousProxy
impl From<Channel> for CloseableSynchronousProxy
impl From<Channel> for ComponentControllerSynchronousProxy
impl From<Channel> for ComponentRunnerSynchronousProxy
impl From<Channel> for ConfigOverrideSynchronousProxy
impl From<Channel> for ConnectorRouterSynchronousProxy
impl From<Channel> for ControllerSynchronousProxy
impl From<Channel> for CrashIntrospectSynchronousProxy
impl From<Channel> for DataRouterSynchronousProxy
impl From<Channel> for DictionaryDrainIteratorSynchronousProxy
impl From<Channel> for DictionaryEnumerateIteratorSynchronousProxy
impl From<Channel> for DictionaryKeysIteratorSynchronousProxy
impl From<Channel> for DictionaryRouterSynchronousProxy
impl From<Channel> for DictionarySynchronousProxy
impl From<Channel> for DirConnectorRouterSynchronousProxy
impl From<Channel> for DirEntryRouterSynchronousProxy
impl From<Channel> for DirReceiverSynchronousProxy
impl From<Channel> for DirectoryRouterSynchronousProxy
impl From<Channel> for DirectorySynchronousProxy
impl From<Channel> for DirectoryWatcherSynchronousProxy
impl From<Channel> for EventStreamSynchronousProxy
impl From<Channel> for ExecutionControllerSynchronousProxy
impl From<Channel> for ExtendedAttributeIteratorSynchronousProxy
impl From<Channel> for FileSynchronousProxy
impl From<Channel> for InspectSinkSynchronousProxy
impl From<Channel> for InstanceIteratorSynchronousProxy
impl From<Channel> for IntrospectorSynchronousProxy
impl From<Channel> for LauncherSynchronousProxy
impl From<Channel> for LifecycleControllerSynchronousProxy
impl From<Channel> for LinkableSynchronousProxy
impl From<Channel> for LoaderSynchronousProxy
impl From<Channel> for LogFlusherSynchronousProxy
impl From<Channel> for LogSettingsSynchronousProxy
impl From<Channel> for LogStreamSynchronousProxy
impl From<Channel> for ManifestBytesIteratorSynchronousProxy
impl From<Channel> for NamespaceSynchronousProxy
impl From<Channel> for NodeSynchronousProxy
impl From<Channel> for NullableHandle
impl From<Channel> for QueryableSynchronousProxy
impl From<Channel> for ReadableSynchronousProxy
impl From<Channel> for RealmExplorerSynchronousProxy
impl From<Channel> for RealmQuerySynchronousProxy
impl From<Channel> for RealmSynchronousProxy
impl From<Channel> for ReceiverSynchronousProxy
impl From<Channel> for ResolverSynchronousProxy
impl From<Channel> for ResolverSynchronousProxy
impl From<Channel> for RouteValidatorSynchronousProxy
impl From<Channel> for SampleSinkSynchronousProxy
impl From<Channel> for SampleSynchronousProxy
impl From<Channel> for StorageAdminSynchronousProxy
impl From<Channel> for StorageAdminSynchronousProxy
impl From<Channel> for StorageIteratorSynchronousProxy
impl From<Channel> for StorageIteratorSynchronousProxy
impl From<Channel> for SymlinkSynchronousProxy
impl From<Channel> for SystemControllerSynchronousProxy
impl From<Channel> for TaskProviderSynchronousProxy
impl From<Channel> for TreeNameIteratorSynchronousProxy
impl From<Channel> for TreeSynchronousProxy
impl From<Channel> for WritableSynchronousProxy
impl From<ChildIteratorSynchronousProxy> for NullableHandle
impl From<ChildName> for ChildRef
impl From<ChildRef> for ChildName
impl From<CloneableSynchronousProxy> for NullableHandle
impl From<CloseableSynchronousProxy> for NullableHandle
impl From<ComponentControllerSynchronousProxy> for NullableHandle
impl From<ComponentDecl> for Component
impl From<ComponentRunnerSynchronousProxy> for NullableHandle
impl From<ComponentSelector<'_>> for ComponentSelector
impl From<ConfigOverrideSynchronousProxy> for NullableHandle
impl From<ConfigSingleValue> for ConfigValue
impl From<ConfigVectorValue> for ConfigValue
impl From<ConfigurationDecl> for CapabilityDecl
impl From<ConnectorRouterSynchronousProxy> for NullableHandle
impl From<ControllerSynchronousProxy> for NullableHandle
impl From<Counter> for NullableHandle
impl From<CrashIntrospectSynchronousProxy> for NullableHandle
impl From<DataRouterSynchronousProxy> for NullableHandle
impl From<DebugLog> for NullableHandle
impl From<DecodeError> for DecodeSliceError
impl From<DeliveryType> for DeliveryType
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
impl From<DictionaryEnumerateIteratorSynchronousProxy> for NullableHandle
impl From<DictionaryKeysIteratorSynchronousProxy> for NullableHandle
impl From<DictionaryRouterSynchronousProxy> for NullableHandle
impl From<DictionarySynchronousProxy> for NullableHandle
impl From<DirConnectorRouterSynchronousProxy> for NullableHandle
impl From<DirEntryRouterSynchronousProxy> for NullableHandle
impl From<DirReceiverSynchronousProxy> for NullableHandle
impl From<DirectoryDecl> for CapabilityDecl
impl From<DirectoryRouterSynchronousProxy> for NullableHandle
impl From<DirectorySynchronousProxy> for NullableHandle
impl From<DirectoryWatcherSynchronousProxy> for NullableHandle
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>
alloc only.impl From<Error<&[u8]>> for Error<Vec<u8>>
alloc only.impl From<Errors> for Result<(), Errors>
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
impl From<Exception> for NullableHandle
impl From<Exception> for NullableHandle
impl From<ExecutionControllerSynchronousProxy> for NullableHandle
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
impl From<FileSynchronousProxy> for NullableHandle
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
impl From<InspectSinkSynchronousProxy> for NullableHandle
impl From<InstanceIteratorSynchronousProxy> for NullableHandle
impl From<Instant<BootTimeline>> for BootInstant
impl From<Instant<MonotonicTimeline>> for MonotonicInstant
impl From<IntrospectorSynchronousProxy> for NullableHandle
impl From<Iob> for NullableHandle
impl From<Iommu> for NullableHandle
impl From<Iommu> for NullableHandle
impl From<Job> for NullableHandle
impl From<LauncherSynchronousProxy> for NullableHandle
impl From<Level> for u8
impl From<LifecycleControllerSynchronousProxy> for NullableHandle
impl From<LinkableSynchronousProxy> for NullableHandle
impl From<LoaderSynchronousProxy> for NullableHandle
impl From<LogFlusherSynchronousProxy> for NullableHandle
impl From<LogSettingsSynchronousProxy> for NullableHandle
impl From<LogStreamSynchronousProxy> for NullableHandle
impl From<ManifestBytesIteratorSynchronousProxy> for NullableHandle
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
impl From<NodeSynchronousProxy> for NullableHandle
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 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
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
impl From<ReadableSynchronousProxy> for NullableHandle
impl From<RealmExplorerSynchronousProxy> for NullableHandle
impl From<RealmQuerySynchronousProxy> for NullableHandle
impl From<RealmSynchronousProxy> for NullableHandle
impl From<ReceiverSynchronousProxy> for NullableHandle
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
impl From<ResolverSynchronousProxy> for NullableHandle
impl From<Resource> for NullableHandle
impl From<RouteValidatorSynchronousProxy> for NullableHandle
impl From<RunnerDecl> for CapabilityDecl
impl From<SampleSinkSynchronousProxy> for NullableHandle
impl From<SampleSynchronousProxy> for NullableHandle
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
impl From<StorageAdminSynchronousProxy> for NullableHandle
impl From<StorageDecl> for CapabilityDecl
impl From<StorageId> for StorageId
impl From<StorageId> for StorageId
impl From<StorageIteratorSynchronousProxy> for NullableHandle
impl From<StorageIteratorSynchronousProxy> for NullableHandle
impl From<Stream> for NullableHandle
impl From<SuspendToken> for NullableHandle
impl From<SymlinkSynchronousProxy> for NullableHandle
impl From<SystemControllerSynchronousProxy> for NullableHandle
impl From<TaskProviderSynchronousProxy> for NullableHandle
impl From<Thread> for NullableHandle
impl From<TreeNameIteratorSynchronousProxy> for NullableHandle
impl From<TreeNames<'_>> for TreeNames
impl From<TreeSelector<'_>> for TreeSelector
impl From<TreeSynchronousProxy> for NullableHandle
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
impl From<[u8; 4]> for IpAddr
impl From<[u8; 4]> for Ipv4Addr
impl From<[u8; 16]> for IpAddr
impl From<[u8; 16]> for Ipv6Addr
impl From<[u16; 8]> for IpAddr
impl From<[u16; 8]> for Ipv6Addr
impl<'a> From<&'a str> for &'a BStr
impl<'a> From<&'a str> for Cow<'a, str>
no_global_oom_handling only.impl<'a> From<&'a str> for BString
impl<'a> From<&'a ByteStr> for Cow<'a, ByteStr>
impl<'a> From<&'a ByteStr> for ByteString
impl<'a> From<&'a CStr> for Cow<'a, CStr>
impl<'a> From<&'a ByteString> for Cow<'a, ByteStr>
impl<'a> From<&'a CString> for Cow<'a, CStr>
impl<'a> From<&'a String> for Cow<'a, str>
no_global_oom_handling only.impl<'a> From<&'a OsStr> for Cow<'a, OsStr>
impl<'a> From<&'a OsString> for Cow<'a, OsStr>
impl<'a> From<&'a Path> for Cow<'a, Path>
impl<'a> From<&'a PathBuf> for Cow<'a, Path>
impl<'a> From<&'a BStr> for &'a [u8]
impl<'a> From<&'a BStr> for Cow<'a, BStr>
alloc only.impl<'a> From<&'a BStr> for BString
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}>
impl<'a> From<&'a [u8]> for &'a BStr
impl<'a> From<&'a [u8]> for BString
impl<'a> From<&str> for Box<dyn Error + 'a>
no_global_oom_handling only.impl<'a> From<&str> for Box<dyn Error + Sync + Send + 'a>
no_global_oom_handling only.impl<'a> From<Cow<'a, str>> for serde_json::value::Value
impl<'a> From<Cow<'a, str>> for String
no_global_oom_handling only.impl<'a> From<Cow<'a, CStr>> for CString
impl<'a> From<Cow<'a, OsStr>> for OsString
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, ()>
impl<'a> From<ByteString> for Cow<'a, ByteStr>
impl<'a> From<CString> for Cow<'a, CStr>
impl<'a> From<String> for Cow<'a, str>
no_global_oom_handling only.impl<'a> From<String> for Box<dyn Error + 'a>
no_global_oom_handling only.impl<'a> From<String> for Box<dyn Error + Sync + Send + 'a>
no_global_oom_handling only.impl<'a> From<OsString> for Cow<'a, OsStr>
impl<'a> From<PathBuf> for Cow<'a, Path>
impl<'a> From<BString> for Cow<'a, BStr>
impl<'a> From<PercentDecode<'a>> for Cow<'a, [u8]>
alloc only.impl<'a> From<PercentEncode<'a>> for Cow<'a, str>
alloc only.impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + 'a>
no_global_oom_handling only.impl<'a, 'b> From<Cow<'b, str>> for Box<dyn Error + Sync + Send + 'a>
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,
impl<'a, B> From<Cow<'a, B>> for Rc<B>
impl<'a, B> From<Cow<'a, B>> for Arc<B>
impl<'a, E> From<E> for Box<dyn Error + 'a>where
E: Error + 'a,
no_global_oom_handling only.impl<'a, E> From<E> for Box<dyn Error + Sync + Send + 'a>
no_global_oom_handling only.impl<'a, F> From<Pin<Box<F>>> for FutureObj<'a, ()>
impl<'a, F> From<Pin<Box<F>>> for LocalFutureObj<'a, ()>
impl<'a, F> From<Box<F>> for FutureObj<'a, ()>
impl<'a, F> From<Box<F>> for LocalFutureObj<'a, ()>
impl<'a, T> From<&'a Option<T>> for Option<&'a T>
impl<'a, T> From<&'a [T]> for Cow<'a, [T]>where
T: Clone,
impl<'a, T> From<&'a Vec<T>> for Cow<'a, [T]>where
T: Clone,
impl<'a, T> From<&'a mut Option<T>> for Option<&'a mut T>
impl<'a, T> From<Cow<'a, [T]>> for Vec<T>
impl<'a, T> From<Vec<T>> for Cow<'a, [T]>where
T: Clone,
impl<'a, T> From<FutureObj<'a, T>> for LocalFutureObj<'a, T>
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
impl<'a, const N: usize> From<&'a [u8; N]> for &'a BStr
impl<'a, const N: usize> From<&'a [u8; N]> for BString
impl<'data> From<&'data mut [u8]> for BorrowedBuf<'data>
Creates a new BorrowedBuf from a fully initialized slice.
impl<'data> From<&'data mut [MaybeUninit<u8>]> for BorrowedBuf<'data>
Creates a new BorrowedBuf from an uninitialized buffer.
Use set_filled if part of the buffer is known to be already filled.
impl<'data> From<BorrowedCursor<'data>> for BorrowedBuf<'data>
Creates a new BorrowedBuf from a cursor.
Use BorrowedCursor::with_unfilled_buf instead for a safer alternative.
impl<'k> From<&'k str> for Key<'k>
impl<'s, S> From<&'s S> for SockRef<'s>where
S: AsFd,
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>
impl<'v> From<&'v bool> for log::kv::value::Value<'v>
impl<'v> From<&'v char> for log::kv::value::Value<'v>
impl<'v> From<&'v f32> for log::kv::value::Value<'v>
impl<'v> From<&'v f64> for log::kv::value::Value<'v>
impl<'v> From<&'v i8> for log::kv::value::Value<'v>
impl<'v> From<&'v i16> for log::kv::value::Value<'v>
impl<'v> From<&'v i32> for log::kv::value::Value<'v>
impl<'v> From<&'v i64> for log::kv::value::Value<'v>
impl<'v> From<&'v i128> for log::kv::value::Value<'v>
impl<'v> From<&'v isize> for log::kv::value::Value<'v>
impl<'v> From<&'v str> for log::kv::value::Value<'v>
impl<'v> From<&'v u8> for log::kv::value::Value<'v>
impl<'v> From<&'v u16> for log::kv::value::Value<'v>
impl<'v> From<&'v u32> for log::kv::value::Value<'v>
impl<'v> From<&'v u64> for log::kv::value::Value<'v>
impl<'v> From<&'v u128> for log::kv::value::Value<'v>
impl<'v> From<&'v usize> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<i8>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<i16>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<i32>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<i64>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<i128>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<isize>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<u8>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<u16>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<u32>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<u64>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<u128>> for log::kv::value::Value<'v>
impl<'v> From<&'v NonZero<usize>> for log::kv::value::Value<'v>
impl<'v> From<bool> for log::kv::value::Value<'v>
impl<'v> From<char> for log::kv::value::Value<'v>
impl<'v> From<f32> for log::kv::value::Value<'v>
impl<'v> From<f64> for log::kv::value::Value<'v>
impl<'v> From<i8> for log::kv::value::Value<'v>
impl<'v> From<i16> for log::kv::value::Value<'v>
impl<'v> From<i32> for log::kv::value::Value<'v>
impl<'v> From<i64> for log::kv::value::Value<'v>
impl<'v> From<i128> for log::kv::value::Value<'v>
impl<'v> From<isize> for log::kv::value::Value<'v>
impl<'v> From<u8> for log::kv::value::Value<'v>
impl<'v> From<u16> for log::kv::value::Value<'v>
impl<'v> From<u32> for log::kv::value::Value<'v>
impl<'v> From<u64> for log::kv::value::Value<'v>
impl<'v> From<u128> for log::kv::value::Value<'v>
impl<'v> From<usize> for log::kv::value::Value<'v>
impl<'v> From<NonZero<i8>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<i16>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<i32>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<i64>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<i128>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<isize>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<u8>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<u16>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<u32>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<u64>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<u128>> for log::kv::value::Value<'v>
impl<'v> From<NonZero<usize>> for log::kv::value::Value<'v>
impl<A> From<(A,)> for Zip<(<A as IntoIterator>::IntoIter,)>where
A: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
G: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
G: IntoIterator,
H: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
G: IntoIterator,
H: IntoIterator,
I: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
G: IntoIterator,
H: IntoIterator,
I: IntoIterator,
J: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
G: IntoIterator,
H: IntoIterator,
I: IntoIterator,
J: IntoIterator,
K: IntoIterator,
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)>where
A: IntoIterator,
B: IntoIterator,
C: IntoIterator,
D: IntoIterator,
E: IntoIterator,
F: IntoIterator,
G: IntoIterator,
H: IntoIterator,
I: IntoIterator,
J: IntoIterator,
K: IntoIterator,
L: IntoIterator,
impl<E> From<E> for Report<E>where
E: Error,
impl<E> From<E> for anyhow::Error
std or non-anyhow_no_core_error only.impl<I> From<(I, u16)> for SocketAddr
impl<K, T> From<Interrupt<K, T>> for NullableHandlewhere
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>
impl<K, V, const N: usize> From<[(K, V); N]> for BTreeMap<K, V>where
K: Ord,
impl<K, V, const N: usize> From<[(K, V); N]> for HashMap<K, V>
impl<K, V, const N: usize> From<[(K, V); N]> for IndexMap<K, V>
has_std only.impl<K, V, const N: usize> From<[(K, V); N]> for AHashMap<K, V>
impl<L, R> From<Result<R, L>> for Either<L, R>
Convert from Result to Either with Ok => Right and Err => Left.
impl<L, R> From<Either<L, R>> for Result<R, L>
Convert from Either to Result with Right => Ok and Left => Err.
impl<O> From<f32> for F32<O>where
O: ByteOrder,
impl<O> From<f64> for F64<O>where
O: ByteOrder,
impl<O> From<i16> for I16<O>where
O: ByteOrder,
impl<O> From<i32> for I32<O>where
O: ByteOrder,
impl<O> From<i64> for I64<O>where
O: ByteOrder,
impl<O> From<i128> for I128<O>where
O: ByteOrder,
impl<O> From<isize> for Isize<O>where
O: ByteOrder,
impl<O> From<u16> for U16<O>where
O: ByteOrder,
impl<O> From<u32> for U32<O>where
O: ByteOrder,
impl<O> From<u64> for U64<O>where
O: ByteOrder,
impl<O> From<u128> for U128<O>where
O: ByteOrder,
impl<O> From<usize> for Usize<O>where
O: ByteOrder,
impl<O> From<F32<O>> for f32where
O: ByteOrder,
impl<O> From<F32<O>> for f64where
O: ByteOrder,
impl<O> From<F32<O>> for [u8; 4]where
O: ByteOrder,
impl<O> From<F64<O>> for f64where
O: ByteOrder,
impl<O> From<F64<O>> for [u8; 8]where
O: ByteOrder,
impl<O> From<I16<O>> for i16where
O: ByteOrder,
impl<O> From<I16<O>> for i32where
O: ByteOrder,
impl<O> From<I16<O>> for i64where
O: ByteOrder,
impl<O> From<I16<O>> for i128where
O: ByteOrder,
impl<O> From<I16<O>> for isizewhere
O: ByteOrder,
impl<O> From<I16<O>> for [u8; 2]where
O: ByteOrder,
impl<O> From<I32<O>> for i32where
O: ByteOrder,
impl<O> From<I32<O>> for i64where
O: ByteOrder,
impl<O> From<I32<O>> for i128where
O: ByteOrder,
impl<O> From<I32<O>> for [u8; 4]where
O: ByteOrder,
impl<O> From<I64<O>> for i64where
O: ByteOrder,
impl<O> From<I64<O>> for i128where
O: ByteOrder,
impl<O> From<I64<O>> for [u8; 8]where
O: ByteOrder,
impl<O> From<I128<O>> for i128where
O: ByteOrder,
impl<O> From<I128<O>> for [u8; 16]where
O: ByteOrder,
impl<O> From<Isize<O>> for isizewhere
O: ByteOrder,
impl<O> From<Isize<O>> for [u8; 8]where
O: ByteOrder,
impl<O> From<U16<O>> for u16where
O: ByteOrder,
impl<O> From<U16<O>> for u32where
O: ByteOrder,
impl<O> From<U16<O>> for u64where
O: ByteOrder,
impl<O> From<U16<O>> for u128where
O: ByteOrder,
impl<O> From<U16<O>> for usizewhere
O: ByteOrder,
impl<O> From<U16<O>> for [u8; 2]where
O: ByteOrder,
impl<O> From<U32<O>> for u32where
O: ByteOrder,
impl<O> From<U32<O>> for u64where
O: ByteOrder,
impl<O> From<U32<O>> for u128where
O: ByteOrder,
impl<O> From<U32<O>> for [u8; 4]where
O: ByteOrder,
impl<O> From<U64<O>> for u64where
O: ByteOrder,
impl<O> From<U64<O>> for u128where
O: ByteOrder,
impl<O> From<U64<O>> for [u8; 8]where
O: ByteOrder,
impl<O> From<U128<O>> for u128where
O: ByteOrder,
impl<O> From<U128<O>> for [u8; 16]where
O: ByteOrder,
impl<O> From<Usize<O>> for usizewhere
O: ByteOrder,
impl<O> From<Usize<O>> for [u8; 8]where
O: ByteOrder,
impl<O> From<[u8; 2]> for I16<O>where
O: ByteOrder,
impl<O> From<[u8; 2]> for U16<O>where
O: ByteOrder,
impl<O> From<[u8; 4]> for F32<O>where
O: ByteOrder,
impl<O> From<[u8; 4]> for I32<O>where
O: ByteOrder,
impl<O> From<[u8; 4]> for U32<O>where
O: ByteOrder,
impl<O> From<[u8; 8]> for F64<O>where
O: ByteOrder,
impl<O> From<[u8; 8]> for I64<O>where
O: ByteOrder,
impl<O> From<[u8; 8]> for Isize<O>where
O: ByteOrder,
impl<O> From<[u8; 8]> for U64<O>where
O: ByteOrder,
impl<O> From<[u8; 8]> for Usize<O>where
O: ByteOrder,
impl<O> From<[u8; 16]> for I128<O>where
O: ByteOrder,
impl<O> From<[u8; 16]> for U128<O>where
O: ByteOrder,
impl<O, P> From<F32<O>> for F64<P>
impl<O, P> From<I16<O>> for I32<P>
impl<O, P> From<I16<O>> for I64<P>
impl<O, P> From<I16<O>> for I128<P>
impl<O, P> From<I16<O>> for Isize<P>
impl<O, P> From<I32<O>> for I64<P>
impl<O, P> From<I32<O>> for I128<P>
impl<O, P> From<I64<O>> for I128<P>
impl<O, P> From<U16<O>> for U32<P>
impl<O, P> From<U16<O>> for U64<P>
impl<O, P> From<U16<O>> for U128<P>
impl<O, P> From<U16<O>> for Usize<P>
impl<O, P> From<U32<O>> for U64<P>
impl<O, P> From<U32<O>> for U128<P>
impl<O, P> From<U64<O>> for U128<P>
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 NullableHandlewhere
Reference: Timeline,
Output: Timeline,
impl<Reference, Output> From<NullableHandle> for Clock<Reference, Output>where
Reference: Timeline,
Output: Timeline,
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,
impl<Src, Dst> From<ConvertError<AlignmentError<Src, Dst>, SizeError<Src, Dst>, Infallible>> for SizeError<Src, Dst>
impl<Src, Dst> From<AlignmentError<Src, Dst>> for Infallible
impl<Src, Dst, A, S> From<ValidityError<Src, Dst>> for ConvertError<A, S, ValidityError<Src, Dst>>where
Dst: TryFromBytes + ?Sized,
impl<Src, Dst, A, V> From<SizeError<Src, Dst>> for ConvertError<A, SizeError<Src, Dst>, V>where
Dst: ?Sized,
impl<Src, Dst, S, V> From<ConvertError<AlignmentError<Src, Dst>, S, V>> for ConvertError<Infallible, S, V>
impl<Src, Dst, S, V> From<AlignmentError<Src, Dst>> for ConvertError<AlignmentError<Src, Dst>, S, V>where
Dst: ?Sized,
impl<T> From<&[T]> for serde_json::value::Value
impl<T> From<&[T]> for Box<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<&[T]> for Rc<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<&[T]> for Arc<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<&[T]> for Vec<T>where
T: Clone,
no_global_oom_handling only.impl<T> From<&mut [T]> for Box<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<&mut [T]> for Rc<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<&mut [T]> for Arc<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<&mut [T]> for Vec<T>where
T: Clone,
no_global_oom_handling only.impl<T> From<Option<T>> for serde_json::value::Value
impl<T> From<Option<T>> for OptionFuture<T>
impl<T> From<Cow<'_, [T]>> for Box<[T]>where
T: Clone,
no_global_oom_handling only.impl<T> From<[T; N]> for (T₁, T₂, …, Tₙ)
This trait is implemented for tuples up to twelve items long.
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.
impl<T> From<*const T> for PtrKey<T>
impl<T> From<*const T> for Atomic<T>
impl<T> From<*mut T> for AtomicPtr<T>
target_has_atomic_load_store=ptr only.impl<T> From<&T> for NonNull<T>where
T: ?Sized,
impl<T> From<&T> for OsString
impl<T> From<&T> for PathBuf
impl<T> From<&mut T> for NonNull<T>where
T: ?Sized,
impl<T> From<(T₁, T₂, …, Tₙ)> for [T; N]
This trait is implemented for tuples up to twelve items long.
impl<T> From<uaddr32> for uref32<T>
impl<T> From<uaddr32> for uref<T>
impl<T> From<uaddr> for uref<T>
impl<T> From<uref32<T>> for uref<T>
impl<T> From<uref<T>> for UserRef<T>
impl<T> From<UserAddress> for UserRef<T>
impl<T> From<UserRef<T>> for uref<T>
impl<T> From<UserRef<T>> for UserAddress
impl<T> From<NonZero<T>> for Twhere
T: ZeroablePrimitive,
impl<T> From<Range<T>> for starnix_uapi::arch32::__static_assertions::_core::range::Range<T>
impl<T> From<RangeFrom<T>> for starnix_uapi::arch32::__static_assertions::_core::range::RangeFrom<T>
impl<T> From<RangeInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::range::RangeInclusive<T>
impl<T> From<RangeToInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::range::RangeToInclusive<T>
impl<T> From<Range<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::Range<T>
impl<T> From<RangeFrom<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::RangeFrom<T>
impl<T> From<RangeInclusive<T>> for starnix_uapi::arch32::__static_assertions::_core::ops::RangeInclusive<T>
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>
impl<T> From<Vec<T>> for serde_json::value::Value
impl<T> From<Vec<T>> for SingleOrVec<T>
impl<T> From<HashSet<T, RandomState>> for AHashSet<T>
impl<T> From<SendError<T>> for std::sync::mpmc::error::SendTimeoutError<T>
impl<T> From<SendError<T>> for std::sync::mpsc::TrySendError<T>
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
impl<T> From<T> for Option<T>
impl<T> From<T> for Poll<T>
impl<T> From<T> for Cell<T>
impl<T> From<T> for starnix_uapi::arch32::__static_assertions::_core::cell::OnceCell<T>
impl<T> From<T> for RefCell<T>
impl<T> From<T> for SyncUnsafeCell<T>
impl<T> From<T> for UnsafeCell<T>
impl<T> From<T> for UnsafePinned<T>
impl<T> From<T> for Exclusive<T>
impl<T> From<T> for Box<T>
no_global_oom_handling only.impl<T> From<T> for Rc<T>
no_global_oom_handling only.impl<T> From<T> for Arc<T>
no_global_oom_handling only.impl<T> From<T> for std::sync::nonpoison::mutex::Mutex<T>
impl<T> From<T> for std::sync::nonpoison::rwlock::RwLock<T>
impl<T> From<T> for OnceLock<T>
impl<T> From<T> for std::sync::poison::mutex::Mutex<T>
impl<T> From<T> for std::sync::poison::rwlock::RwLock<T>
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>
impl<T> From<T> for T
impl<T> From<Timer<T>> for NullableHandlewhere
T: Timeline,
impl<T, A> From<&[T]> for TinyVec<A>
impl<T, A> From<&mut [T]> for TinyVec<A>
impl<T, A> From<Box<[T], A>> for Vec<T, A>where
A: Allocator,
impl<T, A> From<Box<T, A>> for Pin<Box<T, A>>
impl<T, A> From<Box<T, A>> for Rc<T, A>
no_global_oom_handling only.impl<T, A> From<Box<T, A>> for Arc<T, A>
no_global_oom_handling only.impl<T, A> From<BinaryHeap<T, A>> for Vec<T, A>where
A: Allocator,
impl<T, A> From<VecDeque<T, A>> for Vec<T, A>where
A: Allocator,
impl<T, A> From<Vec<T, A>> for Box<[T], A>where
A: Allocator,
no_global_oom_handling only.impl<T, A> From<Vec<T, A>> for BinaryHeap<T, A>
impl<T, A> From<Vec<T, A>> for VecDeque<T, A>where
A: Allocator,
impl<T, A> From<Vec<T, A>> for Rc<[T], A>where
A: Allocator,
no_global_oom_handling only.impl<T, A> From<Vec<T, A>> for Arc<[T], A>
no_global_oom_handling only.impl<T, S, A> From<HashMap<T, (), S, A>> for HashSet<T, S, A>where
A: Allocator + Clone,
impl<T, T64, T32> From<uref32<T32>> for MappingMultiArchUserRef<T, T64, T32>
impl<T, T64, T32> From<uref<T64>> for MappingMultiArchUserRef<T, T64, T32>
impl<T, T64, T32> From<UserRef<T64>> for MappingMultiArchUserRef<T, T64, T32>
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);impl<T, const N: usize> From<&[T; N]> for Vec<T>where
T: Clone,
no_global_oom_handling only.impl<T, const N: usize> From<&mut [T; N]> for Vec<T>where
T: Clone,
no_global_oom_handling only.impl<T, const N: usize> From<[T; N]> for serde_json::value::Value
impl<T, const N: usize> From<[T; N]> for Simd<T, N>
impl<T, const N: usize> From<[T; N]> for Box<[T]>
no_global_oom_handling only.impl<T, const N: usize> From<[T; N]> for BinaryHeap<T>where
T: Ord,
impl<T, const N: usize> From<[T; N]> for BTreeSet<T>where
T: Ord,
impl<T, const N: usize> From<[T; N]> for LinkedList<T>
impl<T, const N: usize> From<[T; N]> for VecDeque<T>
impl<T, const N: usize> From<[T; N]> for Rc<[T]>
no_global_oom_handling only.impl<T, const N: usize> From<[T; N]> for Arc<[T]>
no_global_oom_handling only.impl<T, const N: usize> From<[T; N]> for Vec<T>
no_global_oom_handling only.impl<T, const N: usize> From<[T; N]> for std::collections::hash::set::HashSet<T>
impl<T, const N: usize> From<[T; N]> for IndexSet<T>
has_std only.impl<T, const N: usize> From<[T; N]> for AHashSet<T>
impl<T, const N: usize> From<Mask<T, N>> for [bool; N]
impl<T, const N: usize> From<Simd<T, N>> for [T; N]
impl<T, const N: usize> From<Mask<T, N>> for Simd<T, N>
impl<T, const N: usize> From<[bool; N]> for Mask<T, N>
impl<T, const N: usize> From<[(T, T); N]> for DirectedGraph<T>
impl<T: Copy + Eq + IntoBytes + FromBytes + Immutable> From<T> for UserValue<T>
impl<Tz> From<DateTime<Tz>> for SystemTimewhere
Tz: TimeZone,
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,
impl<W> From<Rc<W>> for LocalWakerwhere
W: LocalWake + 'static,
impl<W> From<Rc<W>> for RawWakerwhere
W: LocalWake + 'static,
impl<W> From<Arc<W>> for RawWaker
target_has_atomic=ptr only.impl<W> From<Arc<W>> for Waker
target_has_atomic=ptr only.