easy_cast

Trait Conv

Source
pub trait Conv<T>: Sized {
    // Required method
    fn try_conv(v: T) -> Result<Self>;

    // Provided method
    fn conv(v: T) -> Self { ... }
}
Expand description

Like From, but supports fallible conversions

This trait is intented to be an extension over From, also supporting fallible conversions of numeric types. Since Rust does not yet have stable support for handling conflicting implementations (specialization or otherwise), only conversions between the most important numeric types are supported for now.

The sister-trait Cast supports “into” style usage.

Required Methods§

Source

fn try_conv(v: T) -> Result<Self>

Try converting from T to Self

This method must fail on inexact conversions.

Provided Methods§

Source

fn conv(v: T) -> Self

Convert from T to Self

This method must return the same result as Self::try_conv where that method succeeds, but differs in the handling of errors:

  • In debug builds the method panics on error
  • Otherwise, the method may panic or may return a different value, but like with the as keyword all results must be well-defined and safe.

Default implementations use Self::try_conv and panic on error. Implementations provided by this library will panic in debug builds or if the always_assert feature flag is used, and otherwise will behave identically to the as keyword.

This mirrors the behaviour of Rust’s overflow checks on integer arithmetic in that it is a tool for diagnosing logic errors where success is expected.

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.

Implementations on Foreign Types§

Source§

impl Conv<f32> for f32

Source§

fn conv(x: f32) -> Self

Source§

fn try_conv(x: f32) -> Result<Self>

Source§

impl Conv<f32> for f64

Source§

fn conv(x: f32) -> f64

Source§

fn try_conv(x: f32) -> Result<Self>

Source§

impl Conv<f64> for f64

Source§

fn conv(x: f64) -> Self

Source§

fn try_conv(x: f64) -> Result<Self>

Source§

impl Conv<i8> for f32

Source§

fn conv(x: i8) -> f32

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for f64

Source§

fn conv(x: i8) -> f64

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for i8

Source§

fn conv(x: i8) -> Self

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for i16

Source§

fn conv(x: i8) -> i16

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for i32

Source§

fn conv(x: i8) -> i32

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for i64

Source§

fn conv(x: i8) -> i64

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for i128

Source§

fn conv(x: i8) -> i128

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for isize

Source§

fn conv(x: i8) -> isize

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for u8

Source§

fn conv(x: i8) -> u8

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for u16

Source§

fn conv(x: i8) -> u16

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for u32

Source§

fn conv(x: i8) -> u32

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for u64

Source§

fn conv(x: i8) -> u64

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for u128

Source§

fn conv(x: i8) -> u128

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i8> for usize

Source§

fn conv(x: i8) -> usize

Source§

fn try_conv(x: i8) -> Result<Self>

Source§

impl Conv<i16> for f32

Source§

fn conv(x: i16) -> f32

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for f64

Source§

fn conv(x: i16) -> f64

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for i8

Source§

fn conv(x: i16) -> i8

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for i16

Source§

fn conv(x: i16) -> Self

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for i32

Source§

fn conv(x: i16) -> i32

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for i64

Source§

fn conv(x: i16) -> i64

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for i128

Source§

fn conv(x: i16) -> i128

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for isize

Source§

fn conv(x: i16) -> isize

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for u8

Source§

fn conv(x: i16) -> u8

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for u16

Source§

fn conv(x: i16) -> u16

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for u32

Source§

fn conv(x: i16) -> u32

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for u64

Source§

fn conv(x: i16) -> u64

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for u128

Source§

fn conv(x: i16) -> u128

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i16> for usize

Source§

fn conv(x: i16) -> usize

Source§

fn try_conv(x: i16) -> Result<Self>

Source§

impl Conv<i32> for f32

Source§

fn conv(x: i32) -> Self

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for f64

Source§

fn conv(x: i32) -> f64

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for i8

Source§

fn conv(x: i32) -> i8

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for i16

Source§

fn conv(x: i32) -> i16

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for i32

Source§

fn conv(x: i32) -> Self

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for i64

Source§

fn conv(x: i32) -> i64

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for i128

Source§

fn conv(x: i32) -> i128

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for isize

Source§

fn conv(x: i32) -> isize

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for u8

Source§

fn conv(x: i32) -> u8

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for u16

Source§

fn conv(x: i32) -> u16

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for u32

Source§

fn conv(x: i32) -> u32

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for u64

Source§

fn conv(x: i32) -> u64

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for u128

Source§

fn conv(x: i32) -> u128

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i32> for usize

Source§

fn conv(x: i32) -> usize

Source§

fn try_conv(x: i32) -> Result<Self>

Source§

impl Conv<i64> for f32

Source§

fn conv(x: i64) -> Self

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for f64

Source§

fn conv(x: i64) -> Self

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for i8

Source§

fn conv(x: i64) -> i8

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for i16

Source§

fn conv(x: i64) -> i16

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for i32

Source§

fn conv(x: i64) -> i32

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for i64

Source§

fn conv(x: i64) -> Self

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for i128

Source§

fn conv(x: i64) -> i128

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for isize

Source§

fn conv(x: i64) -> isize

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for u8

Source§

fn conv(x: i64) -> u8

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for u16

Source§

fn conv(x: i64) -> u16

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for u32

Source§

fn conv(x: i64) -> u32

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for u64

Source§

fn conv(x: i64) -> u64

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for u128

Source§

fn conv(x: i64) -> u128

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i64> for usize

Source§

fn conv(x: i64) -> usize

Source§

fn try_conv(x: i64) -> Result<Self>

Source§

impl Conv<i128> for f32

Source§

fn conv(x: i128) -> Self

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for f64

Source§

fn conv(x: i128) -> Self

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for i8

Source§

fn conv(x: i128) -> i8

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for i16

Source§

fn conv(x: i128) -> i16

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for i32

Source§

fn conv(x: i128) -> i32

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for i64

Source§

fn conv(x: i128) -> i64

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for i128

Source§

fn conv(x: i128) -> Self

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for isize

Source§

impl Conv<i128> for u8

Source§

fn conv(x: i128) -> u8

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for u16

Source§

fn conv(x: i128) -> u16

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for u32

Source§

fn conv(x: i128) -> u32

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for u64

Source§

fn conv(x: i128) -> u64

Source§

fn try_conv(x: i128) -> Result<Self>

Source§

impl Conv<i128> for u128

Source§

impl Conv<i128> for usize

Source§

impl Conv<isize> for f32

Source§

fn conv(x: isize) -> Self

Source§

fn try_conv(x: isize) -> Result<Self>

Source§

impl Conv<isize> for f64

Source§

fn conv(x: isize) -> Self

Source§

fn try_conv(x: isize) -> Result<Self>

Source§

impl Conv<isize> for i8

Source§

impl Conv<isize> for i16

Source§

impl Conv<isize> for i32

Source§

impl Conv<isize> for i64

Source§

impl Conv<isize> for i128

Source§

impl Conv<isize> for isize

Source§

fn conv(x: isize) -> Self

Source§

fn try_conv(x: isize) -> Result<Self>

Source§

impl Conv<isize> for u8

Source§

impl Conv<isize> for u16

Source§

impl Conv<isize> for u32

Source§

impl Conv<isize> for u64

Source§

impl Conv<isize> for u128

Source§

impl Conv<isize> for usize

Source§

impl Conv<u8> for f32

Source§

fn conv(x: u8) -> f32

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for f64

Source§

fn conv(x: u8) -> f64

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for i8

Source§

fn conv(x: u8) -> i8

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for i16

Source§

fn conv(x: u8) -> i16

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for i32

Source§

fn conv(x: u8) -> i32

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for i64

Source§

fn conv(x: u8) -> i64

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for i128

Source§

fn conv(x: u8) -> i128

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for isize

Source§

fn conv(x: u8) -> isize

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for u8

Source§

fn conv(x: u8) -> Self

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for u16

Source§

fn conv(x: u8) -> u16

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for u32

Source§

fn conv(x: u8) -> u32

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for u64

Source§

fn conv(x: u8) -> u64

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for u128

Source§

fn conv(x: u8) -> u128

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u8> for usize

Source§

fn conv(x: u8) -> usize

Source§

fn try_conv(x: u8) -> Result<Self>

Source§

impl Conv<u16> for f32

Source§

fn conv(x: u16) -> f32

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for f64

Source§

fn conv(x: u16) -> f64

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for i8

Source§

fn conv(x: u16) -> i8

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for i16

Source§

fn conv(x: u16) -> i16

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for i32

Source§

fn conv(x: u16) -> i32

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for i64

Source§

fn conv(x: u16) -> i64

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for i128

Source§

fn conv(x: u16) -> i128

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for isize

Source§

fn conv(x: u16) -> isize

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for u8

Source§

fn conv(x: u16) -> u8

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for u16

Source§

fn conv(x: u16) -> Self

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for u32

Source§

fn conv(x: u16) -> u32

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for u64

Source§

fn conv(x: u16) -> u64

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for u128

Source§

fn conv(x: u16) -> u128

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u16> for usize

Source§

fn conv(x: u16) -> usize

Source§

fn try_conv(x: u16) -> Result<Self>

Source§

impl Conv<u32> for f32

Source§

fn conv(x: u32) -> Self

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for f64

Source§

fn conv(x: u32) -> f64

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for i8

Source§

fn conv(x: u32) -> i8

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for i16

Source§

fn conv(x: u32) -> i16

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for i32

Source§

fn conv(x: u32) -> i32

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for i64

Source§

fn conv(x: u32) -> i64

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for i128

Source§

fn conv(x: u32) -> i128

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for isize

Source§

fn conv(x: u32) -> isize

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for u8

Source§

fn conv(x: u32) -> u8

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for u16

Source§

fn conv(x: u32) -> u16

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for u32

Source§

fn conv(x: u32) -> Self

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for u64

Source§

fn conv(x: u32) -> u64

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for u128

Source§

fn conv(x: u32) -> u128

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u32> for usize

Source§

fn conv(x: u32) -> usize

Source§

fn try_conv(x: u32) -> Result<Self>

Source§

impl Conv<u64> for f32

Source§

fn conv(x: u64) -> Self

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for f64

Source§

fn conv(x: u64) -> Self

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for i8

Source§

fn conv(x: u64) -> i8

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for i16

Source§

fn conv(x: u64) -> i16

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for i32

Source§

fn conv(x: u64) -> i32

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for i64

Source§

fn conv(x: u64) -> i64

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for i128

Source§

fn conv(x: u64) -> i128

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for isize

Source§

fn conv(x: u64) -> isize

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for u8

Source§

fn conv(x: u64) -> u8

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for u16

Source§

fn conv(x: u64) -> u16

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for u32

Source§

fn conv(x: u64) -> u32

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for u64

Source§

fn conv(x: u64) -> Self

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for u128

Source§

fn conv(x: u64) -> u128

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u64> for usize

Source§

fn conv(x: u64) -> usize

Source§

fn try_conv(x: u64) -> Result<Self>

Source§

impl Conv<u128> for f32

Source§

fn conv(x: u128) -> Self

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for f64

Source§

fn conv(x: u128) -> Self

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for i8

Source§

fn conv(x: u128) -> i8

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for i16

Source§

fn conv(x: u128) -> i16

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for i32

Source§

fn conv(x: u128) -> i32

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for i64

Source§

fn conv(x: u128) -> i64

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for i128

Source§

impl Conv<u128> for isize

Source§

impl Conv<u128> for u8

Source§

fn conv(x: u128) -> u8

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for u16

Source§

fn conv(x: u128) -> u16

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for u32

Source§

fn conv(x: u128) -> u32

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for u64

Source§

fn conv(x: u128) -> u64

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for u128

Source§

fn conv(x: u128) -> Self

Source§

fn try_conv(x: u128) -> Result<Self>

Source§

impl Conv<u128> for usize

Source§

impl Conv<()> for ()

Source§

fn try_conv(_: ()) -> Result<Self>

Source§

fn conv(_: ()) -> Self

Source§

impl Conv<usize> for f32

Source§

fn conv(x: usize) -> Self

Source§

fn try_conv(x: usize) -> Result<Self>

Source§

impl Conv<usize> for f64

Source§

fn conv(x: usize) -> Self

Source§

fn try_conv(x: usize) -> Result<Self>

Source§

impl Conv<usize> for i8

Source§

impl Conv<usize> for i16

Source§

impl Conv<usize> for i32

Source§

impl Conv<usize> for i64

Source§

impl Conv<usize> for i128

Source§

impl Conv<usize> for isize

Source§

impl Conv<usize> for u8

Source§

impl Conv<usize> for u16

Source§

impl Conv<usize> for u32

Source§

impl Conv<usize> for u64

Source§

impl Conv<usize> for u128

Source§

impl Conv<usize> for usize

Source§

fn conv(x: usize) -> Self

Source§

fn try_conv(x: usize) -> Result<Self>

Source§

impl<S0, S1, S2, S3, S4, S5, T0, T1, T2, T3, T4, T5> Conv<(S0, S1, S2, S3, S4, S5)> for (T0, T1, T2, T3, T4, T5)
where T0: Conv<S0>, T1: Conv<S1>, T2: Conv<S2>, T3: Conv<S3>, T4: Conv<S4>, T5: Conv<S5>,

Source§

impl<S0, S1, S2, S3, S4, T0: Conv<S0>, T1: Conv<S1>, T2: Conv<S2>, T3: Conv<S3>, T4: Conv<S4>> Conv<(S0, S1, S2, S3, S4)> for (T0, T1, T2, T3, T4)

Source§

impl<S0, S1, S2, S3, T0: Conv<S0>, T1: Conv<S1>, T2: Conv<S2>, T3: Conv<S3>> Conv<(S0, S1, S2, S3)> for (T0, T1, T2, T3)

Source§

impl<S0, S1, S2, T0: Conv<S0>, T1: Conv<S1>, T2: Conv<S2>> Conv<(S0, S1, S2)> for (T0, T1, T2)

Source§

impl<S0, S1, T0: Conv<S0>, T1: Conv<S1>> Conv<(S0, S1)> for (T0, T1)

Source§

fn try_conv(ss: (S0, S1)) -> Result<Self>

Source§

fn conv(ss: (S0, S1)) -> Self

Source§

impl<S0, T0: Conv<S0>> Conv<(S0,)> for (T0,)

Source§

fn try_conv(ss: (S0,)) -> Result<Self>

Source§

fn conv(ss: (S0,)) -> Self

Source§

impl<S, T: Conv<S> + Copy + Default, const N: usize> Conv<[S; N]> for [T; N]

Source§

fn try_conv(ss: [S; N]) -> Result<Self>

Source§

fn conv(ss: [S; N]) -> Self

Implementors§