Skip to main content

From

Trait From 

1.55.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 ShadowError

Source§

impl From<&str> for CrateType

Source§

impl From<&str> for TargetKind

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

impl From<&str> for String

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

impl From<&str> for Rc<str>

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

impl From<&String> for String

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

Source§

impl From<&Utf8Path> for Box<Path>

Source§

impl From<&Utf8Path> for Rc<Path>

Source§

impl From<&Utf8Path> for Rc<Utf8Path>

Source§

impl From<&Utf8Path> for Arc<Path>

Source§

impl From<&Utf8Path> for Arc<Utf8Path>

Source§

impl From<&LanguageIdentifier> for (Language, Option<Script>, Option<Region>)

Convert from a LanguageIdentifier to an LSR tuple.

§Examples

use icu::locale::{
    langid,
    subtags::{language, region, script},
};

let lid = langid!("en-Latn-US");
let (lang, script, region) = (&lid).into();

assert_eq!(lang, language!("en"));
assert_eq!(script, Some(script!("Latn")));
assert_eq!(region, Some(region!("US")));
Source§

impl From<&LanguageIdentifier> for DataLocale

Source§

impl From<&LanguageIdentifier> for LocalePreferences

Source§

impl From<&Locale> for DataLocale

Source§

impl From<&Locale> for LocalePreferences

Source§

impl From<&CurrencyType> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<&NumberingSystem> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<&RegionOverride> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<&RegionalSubdivision> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<&TimeZoneShortId> for icu_locale_core::extensions::unicode::value::Value

1.84.0 · Source§

impl From<&mut str> for Box<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 Rc<str>

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<(Unit, i64)> for DateTimeRound

Source§

impl From<(Unit, i64)> for TimeRound

Source§

impl From<(Unit, i64)> for SignedDurationRound

Source§

impl From<(Unit, i64)> for SpanRound<'static>

Source§

impl From<(Unit, i64)> for TimestampRound

Source§

impl From<(Unit, i64)> for OffsetRound

Source§

impl From<(Unit, i64)> for ZonedRound

Source§

impl From<(Unit, Date)> for DateDifference

Source§

impl From<(Unit, Date)> for DateTimeDifference

Source§

impl From<(Unit, Date)> for SpanTotal<'static>

Source§

impl From<(Unit, DateTime)> for DateDifference

Source§

impl From<(Unit, DateTime)> for DateTimeDifference

Source§

impl From<(Unit, DateTime)> for TimeDifference

Source§

impl From<(Unit, DateTime)> for SpanTotal<'static>

Source§

impl From<(Unit, Time)> for TimeDifference

Source§

impl From<(Unit, Timestamp)> for TimestampDifference

Source§

impl From<(Unit, Zoned)> for DateDifference

Source§

impl From<(Unit, Zoned)> for DateTimeDifference

Source§

impl From<(Unit, Zoned)> for TimeDifference

Source§

impl From<(Unit, Zoned)> for TimestampDifference

Source§

impl From<(Duration, Date)> for SpanArithmetic<'static>

Source§

impl From<(Duration, DateTime)> for SpanArithmetic<'static>

Source§

impl From<(Language, Option<Script>, Option<Region>)> for LanguageIdentifier

Convert from an LSR tuple to a LanguageIdentifier.

§Examples

use icu::locale::{
    langid,
    subtags::{language, region, script},
    LanguageIdentifier,
};

let lang = language!("en");
let script = script!("Latn");
let region = region!("US");
assert_eq!(
    LanguageIdentifier::from((lang, Some(script), Some(region))),
    langid!("en-Latn-US")
);
Source§

impl From<(Language, Option<Script>, Option<Region>)> for Locale

§Examples

use icu::locale::Locale;
use icu::locale::{
    locale,
    subtags::{language, region, script},
};

assert_eq!(
    Locale::from((
        language!("en"),
        Some(script!("Latn")),
        Some(region!("US"))
    )),
    locale!("en-Latn-US")
);
Source§

impl From<(SignedDuration, Date)> for SpanArithmetic<'static>

Source§

impl From<(SignedDuration, DateTime)> for SpanArithmetic<'static>

Source§

impl From<(Span, Date)> for SpanArithmetic<'static>

Source§

impl From<(Span, Date)> for SpanCompare<'static>

Source§

impl From<(Span, DateTime)> for SpanArithmetic<'static>

Source§

impl From<(Span, DateTime)> for SpanCompare<'static>

Source§

impl From<(Timestamp, Offset)> for Pieces<'static>

Source§

impl From<Option<Region>> for LanguageIdentifier

§Examples

use icu::locale::{langid, subtags::region, LanguageIdentifier};

assert_eq!(
    LanguageIdentifier::from(Some(region!("US"))),
    langid!("und-US")
);
Source§

impl From<Option<Region>> for Locale

§Examples

use icu::locale::Locale;
use icu::locale::{locale, subtags::region};

assert_eq!(Locale::from(Some(region!("US"))), locale!("und-US"));
Source§

impl From<Option<Script>> for LanguageIdentifier

§Examples

use icu::locale::{langid, subtags::script, LanguageIdentifier};

assert_eq!(
    LanguageIdentifier::from(Some(script!("latn"))),
    langid!("und-Latn")
);
Source§

impl From<Option<Script>> for Locale

§Examples

use icu::locale::Locale;
use icu::locale::{locale, subtags::script};

assert_eq!(Locale::from(Some(script!("latn"))), locale!("und-Latn"));
1.45.0 · Source§

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

Available on non-no_global_oom_handling only.
1.45.0 · Source§

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

1.45.0 · Source§

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

1.45.0 · Source§

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

Source§

impl From<TryReserveErrorKind> for TryReserveError

Source§

impl From<AsciiChar> for char

Source§

impl From<AsciiChar> for u8

Source§

impl From<AsciiChar> for u16

Source§

impl From<AsciiChar> for u32

Source§

impl From<AsciiChar> for u64

Source§

impl From<AsciiChar> for u128

1.36.0 (const: unstable) · Source§

impl From<Infallible> for TryFromSliceError

1.34.0 (const: unstable) · Source§

impl From<Infallible> for TryFromIntError

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<VarError> for ShadowError

1.89.0 · Source§

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

Source§

impl From<FileMode> for i32

Source§

impl From<FileMode> for u32

Source§

impl From<CalendarAlgorithm> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<CollationCaseFirst> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<CollationNumericOrdering> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<CollationType> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<CurrencyFormatStyle> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<EmojiPresentationStyle> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<FirstDay> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<HourCycle> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<LineBreakStyle> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<LineBreakWordHandling> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<MeasurementSystem> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<MeasurementUnitOverride> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<SentenceBreakSupressions> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<CommonVariantType> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<GeneralCategory> for GeneralCategoryGroup

Source§

impl From<FractionalUnit> for Unit

Source§

impl From<Unit> for DateTimeRound

Source§

impl From<Unit> for TimeRound

Source§

impl From<Unit> for SignedDurationRound

Source§

impl From<Unit> for SpanRound<'static>

Source§

impl From<Unit> for SpanTotal<'static>

Source§

impl From<Unit> for TimestampRound

Source§

impl From<Unit> for OffsetRound

Source§

impl From<Unit> for ZonedRound

Source§

impl From<bool> for Dst

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 Atomic<bool>

Available on target_has_atomic_load_store=8 only.
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.
Source§

impl From<char> for PotentialCodePoint

Source§

impl From<f16> for f32

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<f32> for RawBytesULE<zerovec::::ule::plain::{impl#52}::{constant#0}>

Source§

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

1.6.0 (const: unstable) · Source§

impl From<f64> for f128

Source§

impl From<f64> for RawBytesULE<zerovec::::ule::plain::{impl#68}::{constant#0}>

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 Atomic<i8>

Source§

impl From<i8> for Number

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 Atomic<i16>

Source§

impl From<i16> for Number

Source§

impl From<i16> for RawBytesULE<zerovec::::ule::plain::{impl#36}::{constant#0}>

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 Atomic<i32>

Source§

impl From<i32> for Number

Source§

impl From<i32> for RawBytesULE<zerovec::::ule::plain::{impl#47}::{constant#0}>

Source§

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

Source§

impl From<i64> for f128

1.26.0 (const: unstable) · Source§

impl From<i64> for i128

1.34.0 (const: unstable) · Source§

impl From<i64> for Atomic<i64>

Source§

impl From<i64> for Number

Source§

impl From<i64> for RawBytesULE<zerovec::::ule::plain::{impl#63}::{constant#0}>

Source§

impl From<i128> for RawBytesULE<zerovec::::ule::plain::{impl#79}::{constant#0}>

Source§

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

1.23.0 (const: unstable) · Source§

impl From<isize> for Atomic<isize>

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 from U+0000 to U+00FF (inclusive).

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 Atomic<u8>

1.61.0 · Source§

impl From<u8> for ExitCode

Source§

impl From<u8> for Number

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 Atomic<u16>

Source§

impl From<u16> for Number

Source§

impl From<u16> for RawBytesULE<zerovec::::ule::plain::{impl#31}::{constant#0}>

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

1.1.0 (const: unstable) · Source§

impl From<u32> for Ipv4Addr

1.34.0 (const: unstable) · Source§

impl From<u32> for Atomic<u32>

Source§

impl From<u32> for GeneralCategoryGroup

Source§

impl From<u32> for Number

Source§

impl From<u32> for RawBytesULE<zerovec::::ule::plain::{impl#42}::{constant#0}>

Source§

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

Source§

impl From<u64> for f128

1.26.0 (const: unstable) · Source§

impl From<u64> for i128

1.26.0 (const: unstable) · Source§

impl From<u64> for u128

1.34.0 (const: unstable) · Source§

impl From<u64> for Atomic<u64>

Source§

impl From<u64> for Number

Source§

impl From<u64> for RawBytesULE<zerovec::::ule::plain::{impl#58}::{constant#0}>

1.26.0 (const: unstable) · Source§

impl From<u128> for Ipv6Addr

Source§

impl From<u128> for RawBytesULE<zerovec::::ule::plain::{impl#74}::{constant#0}>

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 Atomic<usize>

Source§

impl From<usize> for Number

Source§

impl From<Error> for ProcessingError

1.18.0 · Source§

impl From<Box<str>> for String

Source§

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

1.18.0 · Source§

impl From<Box<CStr>> for CString

1.18.0 · Source§

impl From<Box<OsStr>> for OsString

1.18.0 · Source§

impl From<Box<Path>> for PathBuf

Source§

impl From<Box<Utf8Path>> for Utf8PathBuf

Source§

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

Source§

impl From<String> for ShadowError

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

impl From<String> for Vec<u8>

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

impl From<String> for OsString

1.0.0 · Source§

impl From<String> for PathBuf

Source§

impl From<String> for Utf8PathBuf

1.43.0 · Source§

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

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

impl From<CString> for Vec<u8>

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

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

Source§

impl From<NulError> for git2::error::Error

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<FromUtf8Error> for ShadowError

Source§

impl From<FromUtf8Error> for cargo_metadata::errors::Error

1.62.0 · Source§

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

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

impl From<LayoutError> for TryReserveErrorKind

Source§

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<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<__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<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<__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<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<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<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<Alignment> for usize

Source§

impl From<Alignment> for NonZero<usize>

1.16.0 (const: unstable) · Source§

impl From<Ipv4Addr> for IpAddr

1.1.0 (const: unstable) · Source§

impl From<Ipv4Addr> for u32

1.16.0 (const: unstable) · Source§

impl From<Ipv6Addr> for IpAddr

1.26.0 (const: unstable) · Source§

impl From<Ipv6Addr> for u128

1.16.0 (const: unstable) · Source§

impl From<SocketAddrV4> for SocketAddr

1.16.0 (const: unstable) · Source§

impl From<SocketAddrV6> for SocketAddr

Source§

impl From<ParseIntError> for ShadowError

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<Utf8Error> for cargo_metadata::errors::Error

Source§

impl From<Duration> for DateArithmetic

Source§

impl From<Duration> for DateTimeArithmetic

Source§

impl From<Duration> for TimeArithmetic

Source§

impl From<Duration> for SpanArithmetic<'static>

Source§

impl From<Duration> for TimestampArithmetic

Source§

impl From<Duration> for OffsetArithmetic

Source§

impl From<Duration> for ZonedArithmetic

Source§

impl From<JoinPathsError> for git2::error::Error

1.20.0 · Source§

impl From<OsString> for Box<OsStr>

1.24.0 · Source§

impl From<OsString> for Rc<OsStr>

1.24.0 · Source§

impl From<OsString> for Arc<OsStr>

1.0.0 · Source§

impl From<OsString> for PathBuf

Source§

impl From<Dir> for OwnedFd

1.63.0 · Source§

impl From<File> for OwnedFd

Available on non-Trusty only.
1.20.0 · Source§

impl From<File> for Stdio

Source§

impl From<Error> for ShadowError

Source§

impl From<Error> for cargo_metadata::errors::Error

1.87.0 · Source§

impl From<PipeReader> for OwnedFd

Available on non-Trusty only.
1.87.0 · Source§

impl From<PipeReader> for Stdio

1.87.0 · Source§

impl From<PipeWriter> for OwnedFd

Available on non-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-Trusty only.
1.63.0 · Source§

impl From<TcpStream> for OwnedFd

Available on non-Trusty only.
1.63.0 · Source§

impl From<UdpSocket> for OwnedFd

Available on non-Trusty only.
Source§

impl From<OwnedFd> for Dir

1.63.0 · Source§

impl From<OwnedFd> for File

Available on non-Trusty only.
1.87.0 · Source§

impl From<OwnedFd> for PipeReader

Available on non-Trusty only.
1.87.0 · Source§

impl From<OwnedFd> for PipeWriter

Available on non-Trusty only.
1.63.0 · Source§

impl From<OwnedFd> for TcpListener

Available on non-Trusty only.
1.63.0 · Source§

impl From<OwnedFd> for TcpStream

Available on non-Trusty only.
1.63.0 · Source§

impl From<OwnedFd> for UdpSocket

Available on non-Trusty only.
Source§

impl From<OwnedFd> for PidFd

1.63.0 · Source§

impl From<OwnedFd> for UnixDatagram

1.63.0 · Source§

impl From<OwnedFd> for UnixListener

1.63.0 · Source§

impl From<OwnedFd> for UnixStream

1.74.0 · Source§

impl From<OwnedFd> for ChildStderr

Creates a ChildStderr from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.74.0 · Source§

impl From<OwnedFd> for ChildStdin

Creates a ChildStdin from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.74.0 · Source§

impl From<OwnedFd> for ChildStdout

Creates a ChildStdout from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.63.0 · Source§

impl From<OwnedFd> for Stdio

Source§

impl From<PidFd> for OwnedFd

1.63.0 · Source§

impl From<UnixDatagram> for OwnedFd

1.63.0 · Source§

impl From<UnixListener> for OwnedFd

1.63.0 · Source§

impl From<UnixStream> for OwnedFd

1.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<Utf8PathBuf> for Box<Path>

Source§

impl From<Utf8PathBuf> for Box<Utf8Path>

Source§

impl From<Utf8PathBuf> for String

Source§

impl From<Utf8PathBuf> for Rc<Path>

Source§

impl From<Utf8PathBuf> for Rc<Utf8Path>

Source§

impl From<Utf8PathBuf> for Arc<Path>

Source§

impl From<Utf8PathBuf> for Arc<Utf8Path>

Source§

impl From<Utf8PathBuf> for OsString

Source§

impl From<Utf8PathBuf> for PathBuf

Source§

impl From<Subtag> for TinyAsciiStr<8>

Source§

impl From<Key> for TinyAsciiStr<2>

Source§

impl From<Attribute> for TinyAsciiStr<8>

Source§

impl From<Key> for TinyAsciiStr<2>

Source§

impl From<SubdivisionSuffix> for TinyAsciiStr<4>

Source§

impl From<LanguageIdentifier> for DataLocale

Source§

impl From<LanguageIdentifier> for Locale

Source§

impl From<Locale> for DataLocale

Source§

impl From<Locale> for LanguageIdentifier

Source§

impl From<CurrencyType> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<NumberingSystem> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<RegionOverride> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<RegionalSubdivision> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<TimeZoneShortId> for icu_locale_core::extensions::unicode::value::Value

Source§

impl From<Language> for LanguageIdentifier

§Examples

use icu::locale::{langid, subtags::language, LanguageIdentifier};

assert_eq!(LanguageIdentifier::from(language!("en")), langid!("en"));
Source§

impl From<Language> for Locale

§Examples

use icu::locale::Locale;
use icu::locale::{locale, subtags::language};

assert_eq!(Locale::from(language!("en")), locale!("en"));
Source§

impl From<Language> for TinyAsciiStr<3>

Source§

impl From<Region> for TinyAsciiStr<3>

Source§

impl From<Script> for Subtag

Source§

impl From<Script> for icu_properties::props::Script

Available on crate feature compiled_data only.

Enabled with the compiled_data Cargo feature.

Source§

impl From<Script> for TinyAsciiStr<4>

Source§

impl From<Subtag> for TinyAsciiStr<8>

Source§

impl From<Variant> for TinyAsciiStr<8>

Source§

impl From<BidiClass> for u16

Source§

impl From<CanonicalCombiningClass> for u16

Source§

impl From<EastAsianWidth> for u16

Source§

impl From<GeneralCategoryGroup> for u32

Source§

impl From<GraphemeClusterBreak> for u16

Source§

impl From<HangulSyllableType> for u16

Source§

impl From<IndicConjunctBreak> for u16

Source§

impl From<IndicSyllabicCategory> for u16

Source§

impl From<JoiningGroup> for u16

Source§

impl From<JoiningType> for u16

Source§

impl From<LineBreak> for u16

Source§

impl From<NumericType> for u16

Source§

impl From<Script> for u16

Source§

impl From<Script> for icu_locale_core::subtags::script::Script

Available on crate feature compiled_data only.

Enabled with the compiled_data Cargo feature.

Source§

impl From<SentenceBreak> for u16

Source§

impl From<VerticalOrientation> for u16

Source§

impl From<WordBreak> for u16

Source§

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

Source§

impl From<Errors> for ParseError

Source§

impl From<Date> for DateDifference

Source§

impl From<Date> for DateTime

Converts a Date to a DateTime with the time set to midnight.

Source§

impl From<Date> for DateTimeDifference

Source§

impl From<Date> for ISOWeekDate

Source§

impl From<Date> for BrokenDownTime

Source§

impl From<Date> for Pieces<'static>

Source§

impl From<Date> for SpanRelativeTo<'static>

Source§

impl From<DateTime> for Date

Source§

impl From<DateTime> for DateDifference

Source§

impl From<DateTime> for DateTimeDifference

Source§

impl From<DateTime> for ISOWeekDate

Source§

impl From<DateTime> for Time

Source§

impl From<DateTime> for TimeDifference

Source§

impl From<DateTime> for BrokenDownTime

Source§

impl From<DateTime> for Pieces<'static>

Source§

impl From<DateTime> for SpanRelativeTo<'static>

Source§

impl From<ISOWeekDate> for Date

Source§

impl From<ISOWeekDate> for BrokenDownTime

Source§

impl From<Time> for Meridiem

Source§

impl From<Time> for TimeDifference

Source§

impl From<Time> for BrokenDownTime

Source§

impl From<PiecesNumericOffset> for PiecesOffset

Source§

impl From<SignedDuration> for DateArithmetic

Source§

impl From<SignedDuration> for DateTimeArithmetic

Source§

impl From<SignedDuration> for TimeArithmetic

Source§

impl From<SignedDuration> for SpanArithmetic<'static>

Source§

impl From<SignedDuration> for TimestampArithmetic

Source§

impl From<SignedDuration> for OffsetArithmetic

Source§

impl From<SignedDuration> for ZonedArithmetic

Source§

impl From<Span> for DateArithmetic

Source§

impl From<Span> for DateTimeArithmetic

Source§

impl From<Span> for TimeArithmetic

Source§

impl From<Span> for SpanArithmetic<'static>

Source§

impl From<Span> for SpanCompare<'static>

Source§

impl From<Span> for SpanFieldwise

Source§

impl From<Span> for TimestampArithmetic

Source§

impl From<Span> for OffsetArithmetic

Source§

impl From<Span> for ZonedArithmetic

Source§

impl From<SpanFieldwise> for Span

Source§

impl From<Timestamp> for SystemTime

Available on crate feature std only.
Source§

impl From<Timestamp> for BrokenDownTime

Source§

impl From<Timestamp> for Pieces<'static>

Source§

impl From<Timestamp> for TimestampDifference

Source§

impl From<Offset> for PiecesOffset

Source§

impl From<Offset> for TimeZoneAnnotationKind<'static>

Source§

impl From<Offset> for PiecesNumericOffset

Source§

impl From<Offset> for TimeZoneAnnotation<'static>

Source§

impl From<Offset> for SignedDuration

Source§

impl From<Zoned> for SystemTime

Available on crate feature std only.
Source§

impl From<Zoned> for Date

Source§

impl From<Zoned> for DateDifference

Source§

impl From<Zoned> for DateTime

Converts a Zoned to a DateTime.

Source§

impl From<Zoned> for DateTimeDifference

Source§

impl From<Zoned> for ISOWeekDate

Source§

impl From<Zoned> for Time

Source§

impl From<Zoned> for TimeDifference

Source§

impl From<Zoned> for Timestamp

Source§

impl From<Zoned> for TimestampDifference

Source§

impl From<LiteMap<Key, Value, ShortBoxSlice<(Key, Value)>>> for Keywords

Source§

impl From<PotentialCodePoint> for u32

Source§

impl From<Error> for cargo_metadata::errors::Error

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<BoundsError> for jiff::error::Error

Source§

impl From<CrateFeatureError> for jiff::error::Error

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl From<ErrorKind> for jiff::error::Error

Source§

impl From<FormatError> for jiff::error::Error

Source§

impl From<OsStrUtf8Error> for jiff::error::Error

Source§

impl From<ParseError> for jiff::error::Error

Source§

impl From<ParseFractionError> for jiff::error::Error

Source§

impl From<ParseIntError> for jiff::error::Error

Source§

impl From<ParserNumber> for Number

Source§

impl From<PunycodeEncodeError> for ProcessingError

Source§

impl From<RoundingIncrementError> for jiff::error::Error

1.94.0 · Source§

impl From<Simd<f16, 8>> for __m128h

1.94.0 · Source§

impl From<Simd<f16, 16>> for __m256h

1.94.0 · Source§

impl From<Simd<f16, 32>> for __m512h

1.27.0 · Source§

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

1.27.0 · Source§

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

1.72.0 · Source§

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

1.27.0 · Source§

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

1.27.0 · Source§

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

1.72.0 · Source§

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

1.27.0 · Source§

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

1.27.0 · Source§

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

1.72.0 · Source§

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

1.89.0 · Source§

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

1.89.0 · Source§

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

1.89.0 · Source§

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

Source§

impl From<SpecialBoundsError> for jiff::error::Error

Source§

impl From<UnitConfigError> for jiff::error::Error

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 Utf8Path

Source§

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

1.0.0 · Source§

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

Available on non-no_global_oom_handling only.
1.28.0 · Source§

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

Available on non-no_global_oom_handling only.
Source§

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

1.28.0 · Source§

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

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 Duration> for DateArithmetic

Source§

impl<'a> From<&'a Duration> for DateTimeArithmetic

Source§

impl<'a> From<&'a Duration> for TimeArithmetic

Source§

impl<'a> From<&'a Duration> for TimestampArithmetic

Source§

impl<'a> From<&'a Duration> for OffsetArithmetic

Source§

impl<'a> From<&'a Duration> for ZonedArithmetic

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 Utf8Path> for Cow<'a, Path>

Source§

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

Source§

impl<'a> From<&'a SignedDuration> for DateArithmetic

Source§

impl<'a> From<&'a SignedDuration> for DateTimeArithmetic

Source§

impl<'a> From<&'a SignedDuration> for TimeArithmetic

Source§

impl<'a> From<&'a SignedDuration> for TimestampArithmetic

Source§

impl<'a> From<&'a SignedDuration> for OffsetArithmetic

Source§

impl<'a> From<&'a SignedDuration> for ZonedArithmetic

Source§

impl<'a> From<&'a Span> for DateArithmetic

Source§

impl<'a> From<&'a Span> for DateTimeArithmetic

Source§

impl<'a> From<&'a Span> for TimeArithmetic

Source§

impl<'a> From<&'a Span> for SpanArithmetic<'static>

Source§

impl<'a> From<&'a Span> for SpanCompare<'static>

Source§

impl<'a> From<&'a Span> for TimestampArithmetic

Source§

impl<'a> From<&'a Span> for OffsetArithmetic

Source§

impl<'a> From<&'a Span> for ZonedArithmetic

Source§

impl<'a> From<&'a Zoned> for SystemTime

Available on crate feature std only.
Source§

impl<'a> From<&'a Zoned> for Date

Source§

impl<'a> From<&'a Zoned> for DateDifference

Source§

impl<'a> From<&'a Zoned> for DateTime

Converts a &Zoned to a DateTime.

Source§

impl<'a> From<&'a Zoned> for DateTimeDifference

Source§

impl<'a> From<&'a Zoned> for ISOWeekDate

Source§

impl<'a> From<&'a Zoned> for Time

Source§

impl<'a> From<&'a Zoned> for TimeDifference

Source§

impl<'a> From<&'a Zoned> for BrokenDownTime

Source§

impl<'a> From<&'a Zoned> for Pieces<'a>

Source§

impl<'a> From<&'a Zoned> for SpanRelativeTo<'a>

Source§

impl<'a> From<&'a Zoned> for Timestamp

Source§

impl<'a> From<&'a Zoned> for TimestampDifference

Source§

impl<'a> From<&'a Zoned> for ZonedDifference<'a>

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

Available on non-no_global_oom_handling only.
Source§

impl<'a> From<(&'a Span, Date)> for SpanArithmetic<'static>

Source§

impl<'a> From<(&'a Span, Date)> for SpanCompare<'static>

Source§

impl<'a> From<(&'a Span, DateTime)> for SpanArithmetic<'static>

Source§

impl<'a> From<(&'a Span, DateTime)> for SpanCompare<'static>

Source§

impl<'a> From<(Unit, &'a Zoned)> for DateDifference

Source§

impl<'a> From<(Unit, &'a Zoned)> for DateTimeDifference

Source§

impl<'a> From<(Unit, &'a Zoned)> for TimeDifference

Source§

impl<'a> From<(Unit, &'a Zoned)> for SpanTotal<'a>

Source§

impl<'a> From<(Unit, &'a Zoned)> for TimestampDifference

Source§

impl<'a> From<(Unit, &'a Zoned)> for ZonedDifference<'a>

Source§

impl<'a> From<(Unit, SpanRelativeTo<'a>)> for SpanTotal<'a>

Source§

impl<'a> From<(Duration, &'a Zoned)> for SpanArithmetic<'a>

Source§

impl<'a> From<(SignedDuration, &'a Zoned)> for SpanArithmetic<'a>

Source§

impl<'a> From<(Span, &'a Zoned)> for SpanArithmetic<'a>

Source§

impl<'a> From<(Span, &'a Zoned)> for SpanCompare<'a>

Source§

impl<'a> From<(Span, SpanRelativeTo<'a>)> for SpanArithmetic<'a>

Source§

impl<'a> From<(Span, SpanRelativeTo<'a>)> for SpanCompare<'a>

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

Source§

impl<'a> From<Cow<'a, Utf8Path>> for Utf8PathBuf

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

Available on non-no_global_oom_handling only.
Source§

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

1.28.0 · Source§

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

1.28.0 · Source§

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

1.6.0 · Source§

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

Source§

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

Source§

impl<'a> From<Utf8PathBuf> for Cow<'a, Utf8Path>

Source§

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

Available on crate feature alloc only.
Source§

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

Available on crate feature alloc only.
Source§

impl<'a, 'b> From<(&'a Span, &'b Zoned)> for SpanArithmetic<'b>

Source§

impl<'a, 'b> From<(&'a Span, &'b Zoned)> for SpanCompare<'b>

Source§

impl<'a, 'b> From<(&'a Span, SpanRelativeTo<'b>)> for SpanArithmetic<'b>

Source§

impl<'a, 'b> From<(&'a Span, SpanRelativeTo<'b>)> for SpanCompare<'b>

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

Available on non-no_global_oom_handling only.
Source§

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

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

Source§

impl<'a, T> From<&'a [<T as AsULE>::ULE]> for ZeroVec<'a, T>
where T: AsULE,

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,

Source§

impl<'a, T, F> From<&'a VarZeroSlice<T, F>> for VarZeroVec<'a, T, F>
where T: ?Sized,

1.77.0 · Source§

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

Source§

impl<'a, V> From<&'a V> for VarZeroCow<'a, V>
where V: VarULE + ?Sized,

Source§

impl<'data> From<&'data CodePointInversionListULE> for CodePointInversionList<'data>

Source§

impl<'data> From<&'data CodePointInversionListAndStringListULE> for CodePointInversionListAndStringList<'data>

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.

Source§

impl<'data> From<BorrowedCursor<'data>> for BorrowedBuf<'data>

Creates a new BorrowedBuf from a cursor.

Use BorrowedCursor::with_unfilled_buf instead for a safer alternative.

Source§

impl<'l> From<&'l Subtag> for &'l str

Source§

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

Source§

impl<'l> From<&'l Attribute> for &'l str

Source§

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

Source§

impl<'l> From<&'l SubdivisionSuffix> for &'l str

Source§

impl<'l> From<&'l Language> for &'l str

Source§

impl<'l> From<&'l Region> for &'l str

Source§

impl<'l> From<&'l Script> for &'l str

Source§

impl<'l> From<&'l Subtag> for &'l str

Source§

impl<'l> From<&'l Variant> for &'l str

Source§

impl<'n> From<&'n str> for TimeZoneAnnotationKind<'n>

Source§

impl<'n> From<&'n str> for TimeZoneAnnotation<'n>

Source§

impl<'n> From<&'n str> for TimeZoneAnnotationName<'n>

1.19.0 · Source§

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

Source§

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

Source§

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

Source§

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

1.17.0 (const: unstable) · Source§

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

1.56.0 · Source§

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

1.56.0 · Source§

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

Source§

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

impl<T> From<&[T]> for Vec<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.84.0 · Source§

impl<T> From<&mut [T]> for Box<[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.
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.
Source§

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

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.

1.23.0 (const: unstable) · Source§

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

Available on target_has_atomic_load_store=ptr only.
Source§

impl<T> From<&T> for Box<Utf8Path>
where T: AsRef<str> + ?Sized,

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,

Source§

impl<T> From<&T> for Utf8PathBuf
where T: AsRef<str> + ?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<Vec<T>> for serde_json::value::Value
where T: Into<Value>,

1.31.0 (const: unstable) · Source§

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

1.96.0 (const: unstable) · Source§

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

1.96.0 (const: unstable) · Source§

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

1.95.0 (const: unstable) · Source§

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

1.96.0 · Source§

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

1.96.0 (const: unstable) · Source§

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

1.96.0 (const: unstable) · Source§

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

1.95.0 (const: unstable) · Source§

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

1.96.0 · Source§

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

Source§

impl<T> From<RecvError> for std::sync::oneshot::RecvTimeoutError<T>

Source§

impl<T> From<RecvError> for std::sync::oneshot::TryRecvError<T>

Source§

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

1.24.0 · Source§

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

1.0.0 · Source§

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

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

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

Available on non-no_global_oom_handling only.
Source§

impl<T> From<T> for ThinBox<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.
Source§

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

Available on non-no_global_oom_handling only.
1.70.0 (const: unstable) · Source§

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

1.12.0 (const: unstable) · Source§

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

1.96.0 · Source§

impl<T> From<T> for AssertUnwindSafe<T>
where T: UnwindSafe,

If a value’s type is already UnwindSafe, wrapping it in AssertUnwindSafe is never incorrect.

Source§

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

Source§

impl<T> From<T> for SyncView<T>

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>

1.0.0 (const: unstable) · Source§

impl<T> From<T> for T

1.18.0 · Source§

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

1.21.0 · Source§

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

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

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

1.20.0 · Source§

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

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

impl<T, F> From<T> for LazyCell<T, F>

1.96.0 · Source§

impl<T, F> From<T> for LazyLock<T, F>

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

1.45.0 · Source§

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

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

1.56.0 · Source§

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

Source§

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

Source§

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

1.95.0 · Source§

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

Source§

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

1.95.0 · Source§

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

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

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>

Source§

impl<const N: usize> From<TinyAsciiStr<N>> for UnvalidatedTinyAsciiStr<N>

Source§

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