Skip to main content

Conversion

Struct Conversion 

Source
pub struct Conversion<T, U>(/* private fields */);
Expand description

Constant conversion operation (conv)

  • Conversion::<_, U>::conv(_)

Implementations§

Source§

impl Conversion<Ch8, Ch8>

Source

pub const fn conv(value: Ch8) -> Ch8

Convert between types.

Source§

impl Conversion<Ch12, Ch12>

Source

pub const fn conv(value: Ch12) -> Ch12

Convert between types.

Source§

impl Conversion<Ch16, Ch16>

Source

pub const fn conv(value: Ch16) -> Ch16

Convert between types.

Source§

impl Conversion<Ch24, Ch24>

Source

pub const fn conv(value: Ch24) -> Ch24

Convert between types.

Source§

impl Conversion<Ch32, Ch32>

Source

pub const fn conv(value: Ch32) -> Ch32

Convert between types.

Source§

impl Conversion<Ch64, Ch64>

Source

pub const fn conv(value: Ch64) -> Ch64

Convert between types.

Source§

impl Conversion<Ch8, Ch12>

Source

pub const fn conv(value: Ch8) -> Ch12

Convert between types.

Source§

impl Conversion<Ch8, Ch16>

Source

pub const fn conv(value: Ch8) -> Ch16

Convert between types.

Source§

impl Conversion<Ch8, Ch24>

Source

pub const fn conv(value: Ch8) -> Ch24

Convert between types.

Source§

impl Conversion<Ch8, Ch32>

Source

pub const fn conv(value: Ch8) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch64>

Source

pub const fn conv(value: Ch8) -> Ch64

Convert between types.

Source§

impl Conversion<Ch12, Ch8>

Source

pub const fn conv(value: Ch12) -> Ch8

Convert between types.

Source§

impl Conversion<Ch12, Ch16>

Source

pub const fn conv(value: Ch12) -> Ch16

Convert between types.

Source§

impl Conversion<Ch12, Ch24>

Source

pub const fn conv(value: Ch12) -> Ch24

Convert between types.

Source§

impl Conversion<Ch12, Ch32>

Source

pub const fn conv(value: Ch12) -> Ch32

Convert between types.

Source§

impl Conversion<Ch12, Ch64>

Source

pub const fn conv(value: Ch12) -> Ch64

Convert between types.

Source§

impl Conversion<Ch16, Ch8>

Source

pub const fn conv(value: Ch16) -> Ch8

Convert between types.

Source§

impl Conversion<Ch16, Ch12>

Source

pub const fn conv(value: Ch16) -> Ch12

Convert between types.

Source§

impl Conversion<Ch16, Ch24>

Source

pub const fn conv(value: Ch16) -> Ch24

Convert between types.

Source§

impl Conversion<Ch16, Ch32>

Source

pub const fn conv(value: Ch16) -> Ch32

Convert between types.

Source§

impl Conversion<Ch16, Ch64>

Source

pub const fn conv(value: Ch16) -> Ch64

Convert between types.

Source§

impl Conversion<Ch24, Ch8>

Source

pub const fn conv(value: Ch24) -> Ch8

Convert between types.

Source§

impl Conversion<Ch24, Ch12>

Source

pub const fn conv(value: Ch24) -> Ch12

Convert between types.

Source§

impl Conversion<Ch24, Ch16>

Source

pub const fn conv(value: Ch24) -> Ch16

Convert between types.

Source§

impl Conversion<Ch24, Ch32>

Source

pub const fn conv(value: Ch24) -> Ch32

Convert between types.

Source§

impl Conversion<Ch24, Ch64>

Source

pub const fn conv(value: Ch24) -> Ch64

Convert between types.

Source§

impl Conversion<Ch32, Ch8>

Source

pub const fn conv(value: Ch32) -> Ch8

Convert between types.

Source§

impl Conversion<Ch32, Ch12>

Source

pub const fn conv(value: Ch32) -> Ch12

Convert between types.

Source§

impl Conversion<Ch32, Ch16>

Source

pub const fn conv(value: Ch32) -> Ch16

Convert between types.

Source§

impl Conversion<Ch32, Ch24>

Source

pub const fn conv(value: Ch32) -> Ch24

Convert between types.

Source§

impl Conversion<Ch32, Ch64>

Source

pub const fn conv(value: Ch32) -> Ch64

Convert between types.

Source§

impl Conversion<Ch64, Ch8>

Source

pub const fn conv(value: Ch64) -> Ch8

Convert between types.

Source§

impl Conversion<Ch64, Ch12>

Source

pub const fn conv(value: Ch64) -> Ch12

Convert between types.

Source§

impl Conversion<Ch64, Ch16>

Source

pub const fn conv(value: Ch64) -> Ch16

Convert between types.

Source§

impl Conversion<Ch64, Ch24>

Source

pub const fn conv(value: Ch64) -> Ch24

Convert between types.

Source§

impl Conversion<Ch64, Ch32>

Source

pub const fn conv(value: Ch64) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch12>

Source

pub const fn conv(value: Ch8) -> Ch12

Convert between types.

Source§

impl Conversion<Ch8, Ch16>

Source

pub const fn conv(value: Ch8) -> Ch16

Convert between types.

Source§

impl Conversion<Ch8, Ch24>

Source

pub const fn conv(value: Ch8) -> Ch24

Convert between types.

Source§

impl Conversion<Ch8, Ch32>

Source

pub const fn conv(value: Ch8) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch64>

Source

pub const fn conv(value: Ch8) -> Ch64

Convert between types.

Source§

impl Conversion<Ch12, Ch8>

Source

pub const fn conv(value: Ch12) -> Ch8

Convert between types.

Source§

impl Conversion<Ch12, Ch16>

Source

pub const fn conv(value: Ch12) -> Ch16

Convert between types.

Source§

impl Conversion<Ch12, Ch24>

Source

pub const fn conv(value: Ch12) -> Ch24

Convert between types.

Source§

impl Conversion<Ch12, Ch32>

Source

pub const fn conv(value: Ch12) -> Ch32

Convert between types.

Source§

impl Conversion<Ch12, Ch64>

Source

pub const fn conv(value: Ch12) -> Ch64

Convert between types.

Source§

impl Conversion<Ch16, Ch8>

Source

pub const fn conv(value: Ch16) -> Ch8

Convert between types.

Source§

impl Conversion<Ch16, Ch12>

Source

pub const fn conv(value: Ch16) -> Ch12

Convert between types.

Source§

impl Conversion<Ch16, Ch24>

Source

pub const fn conv(value: Ch16) -> Ch24

Convert between types.

Source§

impl Conversion<Ch16, Ch32>

Source

pub const fn conv(value: Ch16) -> Ch32

Convert between types.

Source§

impl Conversion<Ch16, Ch64>

Source

pub const fn conv(value: Ch16) -> Ch64

Convert between types.

Source§

impl Conversion<Ch24, Ch8>

Source

pub const fn conv(value: Ch24) -> Ch8

Convert between types.

Source§

impl Conversion<Ch24, Ch12>

Source

pub const fn conv(value: Ch24) -> Ch12

Convert between types.

Source§

impl Conversion<Ch24, Ch16>

Source

pub const fn conv(value: Ch24) -> Ch16

Convert between types.

Source§

impl Conversion<Ch24, Ch32>

Source

pub const fn conv(value: Ch24) -> Ch32

Convert between types.

Source§

impl Conversion<Ch24, Ch64>

Source

pub const fn conv(value: Ch24) -> Ch64

Convert between types.

Source§

impl Conversion<Ch32, Ch8>

Source

pub const fn conv(value: Ch32) -> Ch8

Convert between types.

Source§

impl Conversion<Ch32, Ch12>

Source

pub const fn conv(value: Ch32) -> Ch12

Convert between types.

Source§

impl Conversion<Ch32, Ch16>

Source

pub const fn conv(value: Ch32) -> Ch16

Convert between types.

Source§

impl Conversion<Ch32, Ch24>

Source

pub const fn conv(value: Ch32) -> Ch24

Convert between types.

Source§

impl Conversion<Ch32, Ch64>

Source

pub const fn conv(value: Ch32) -> Ch64

Convert between types.

Source§

impl Conversion<Ch64, Ch8>

Source

pub const fn conv(value: Ch64) -> Ch8

Convert between types.

Source§

impl Conversion<Ch64, Ch12>

Source

pub const fn conv(value: Ch64) -> Ch12

Convert between types.

Source§

impl Conversion<Ch64, Ch16>

Source

pub const fn conv(value: Ch64) -> Ch16

Convert between types.

Source§

impl Conversion<Ch64, Ch24>

Source

pub const fn conv(value: Ch64) -> Ch24

Convert between types.

Source§

impl Conversion<Ch64, Ch32>

Source

pub const fn conv(value: Ch64) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch8>

Source

pub const fn conv(value: Ch8) -> Ch8

Convert between types.

Source§

impl Conversion<Ch12, Ch12>

Source

pub const fn conv(value: Ch12) -> Ch12

Convert between types.

Source§

impl Conversion<Ch16, Ch16>

Source

pub const fn conv(value: Ch16) -> Ch16

Convert between types.

Source§

impl Conversion<Ch24, Ch24>

Source

pub const fn conv(value: Ch24) -> Ch24

Convert between types.

Source§

impl Conversion<Ch32, Ch32>

Source

pub const fn conv(value: Ch32) -> Ch32

Convert between types.

Source§

impl Conversion<Ch64, Ch64>

Source

pub const fn conv(value: Ch64) -> Ch64

Convert between types.

Source§

impl Conversion<Ch8, Ch12>

Source

pub const fn conv(value: Ch8) -> Ch12

Convert between types.

Source§

impl Conversion<Ch8, Ch16>

Source

pub const fn conv(value: Ch8) -> Ch16

Convert between types.

Source§

impl Conversion<Ch8, Ch24>

Source

pub const fn conv(value: Ch8) -> Ch24

Convert between types.

Source§

impl Conversion<Ch8, Ch32>

Source

pub const fn conv(value: Ch8) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch64>

Source

pub const fn conv(value: Ch8) -> Ch64

Convert between types.

Source§

impl Conversion<Ch12, Ch8>

Source

pub const fn conv(value: Ch12) -> Ch8

Convert between types.

Source§

impl Conversion<Ch12, Ch16>

Source

pub const fn conv(value: Ch12) -> Ch16

Convert between types.

Source§

impl Conversion<Ch12, Ch24>

Source

pub const fn conv(value: Ch12) -> Ch24

Convert between types.

Source§

impl Conversion<Ch12, Ch32>

Source

pub const fn conv(value: Ch12) -> Ch32

Convert between types.

Source§

impl Conversion<Ch12, Ch64>

Source

pub const fn conv(value: Ch12) -> Ch64

Convert between types.

Source§

impl Conversion<Ch16, Ch8>

Source

pub const fn conv(value: Ch16) -> Ch8

Convert between types.

Source§

impl Conversion<Ch16, Ch12>

Source

pub const fn conv(value: Ch16) -> Ch12

Convert between types.

Source§

impl Conversion<Ch16, Ch24>

Source

pub const fn conv(value: Ch16) -> Ch24

Convert between types.

Source§

impl Conversion<Ch16, Ch32>

Source

pub const fn conv(value: Ch16) -> Ch32

Convert between types.

Source§

impl Conversion<Ch16, Ch64>

Source

pub const fn conv(value: Ch16) -> Ch64

Convert between types.

Source§

impl Conversion<Ch24, Ch8>

Source

pub const fn conv(value: Ch24) -> Ch8

Convert between types.

Source§

impl Conversion<Ch24, Ch12>

Source

pub const fn conv(value: Ch24) -> Ch12

Convert between types.

Source§

impl Conversion<Ch24, Ch16>

Source

pub const fn conv(value: Ch24) -> Ch16

Convert between types.

Source§

impl Conversion<Ch24, Ch32>

Source

pub const fn conv(value: Ch24) -> Ch32

Convert between types.

Source§

impl Conversion<Ch24, Ch64>

Source

pub const fn conv(value: Ch24) -> Ch64

Convert between types.

Source§

impl Conversion<Ch32, Ch8>

Source

pub const fn conv(value: Ch32) -> Ch8

Convert between types.

Source§

impl Conversion<Ch32, Ch12>

Source

pub const fn conv(value: Ch32) -> Ch12

Convert between types.

Source§

impl Conversion<Ch32, Ch16>

Source

pub const fn conv(value: Ch32) -> Ch16

Convert between types.

Source§

impl Conversion<Ch32, Ch24>

Source

pub const fn conv(value: Ch32) -> Ch24

Convert between types.

Source§

impl Conversion<Ch32, Ch64>

Source

pub const fn conv(value: Ch32) -> Ch64

Convert between types.

Source§

impl Conversion<Ch64, Ch8>

Source

pub const fn conv(value: Ch64) -> Ch8

Convert between types.

Source§

impl Conversion<Ch64, Ch12>

Source

pub const fn conv(value: Ch64) -> Ch12

Convert between types.

Source§

impl Conversion<Ch64, Ch16>

Source

pub const fn conv(value: Ch64) -> Ch16

Convert between types.

Source§

impl Conversion<Ch64, Ch24>

Source

pub const fn conv(value: Ch64) -> Ch24

Convert between types.

Source§

impl Conversion<Ch64, Ch32>

Source

pub const fn conv(value: Ch64) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch12>

Source

pub const fn conv(value: Ch8) -> Ch12

Convert between types.

Source§

impl Conversion<Ch8, Ch16>

Source

pub const fn conv(value: Ch8) -> Ch16

Convert between types.

Source§

impl Conversion<Ch8, Ch24>

Source

pub const fn conv(value: Ch8) -> Ch24

Convert between types.

Source§

impl Conversion<Ch8, Ch32>

Source

pub const fn conv(value: Ch8) -> Ch32

Convert between types.

Source§

impl Conversion<Ch8, Ch64>

Source

pub const fn conv(value: Ch8) -> Ch64

Convert between types.

Source§

impl Conversion<Ch12, Ch8>

Source

pub const fn conv(value: Ch12) -> Ch8

Convert between types.

Source§

impl Conversion<Ch12, Ch16>

Source

pub const fn conv(value: Ch12) -> Ch16

Convert between types.

Source§

impl Conversion<Ch12, Ch24>

Source

pub const fn conv(value: Ch12) -> Ch24

Convert between types.

Source§

impl Conversion<Ch12, Ch32>

Source

pub const fn conv(value: Ch12) -> Ch32

Convert between types.

Source§

impl Conversion<Ch12, Ch64>

Source

pub const fn conv(value: Ch12) -> Ch64

Convert between types.

Source§

impl Conversion<Ch16, Ch8>

Source

pub const fn conv(value: Ch16) -> Ch8

Convert between types.

Source§

impl Conversion<Ch16, Ch12>

Source

pub const fn conv(value: Ch16) -> Ch12

Convert between types.

Source§

impl Conversion<Ch16, Ch24>

Source

pub const fn conv(value: Ch16) -> Ch24

Convert between types.

Source§

impl Conversion<Ch16, Ch32>

Source

pub const fn conv(value: Ch16) -> Ch32

Convert between types.

Source§

impl Conversion<Ch16, Ch64>

Source

pub const fn conv(value: Ch16) -> Ch64

Convert between types.

Source§

impl Conversion<Ch24, Ch8>

Source

pub const fn conv(value: Ch24) -> Ch8

Convert between types.

Source§

impl Conversion<Ch24, Ch12>

Source

pub const fn conv(value: Ch24) -> Ch12

Convert between types.

Source§

impl Conversion<Ch24, Ch16>

Source

pub const fn conv(value: Ch24) -> Ch16

Convert between types.

Source§

impl Conversion<Ch24, Ch32>

Source

pub const fn conv(value: Ch24) -> Ch32

Convert between types.

Source§

impl Conversion<Ch24, Ch64>

Source

pub const fn conv(value: Ch24) -> Ch64

Convert between types.

Source§

impl Conversion<Ch32, Ch8>

Source

pub const fn conv(value: Ch32) -> Ch8

Convert between types.

Source§

impl Conversion<Ch32, Ch12>

Source

pub const fn conv(value: Ch32) -> Ch12

Convert between types.

Source§

impl Conversion<Ch32, Ch16>

Source

pub const fn conv(value: Ch32) -> Ch16

Convert between types.

Source§

impl Conversion<Ch32, Ch24>

Source

pub const fn conv(value: Ch32) -> Ch24

Convert between types.

Source§

impl Conversion<Ch32, Ch64>

Source

pub const fn conv(value: Ch32) -> Ch64

Convert between types.

Source§

impl Conversion<Ch64, Ch8>

Source

pub const fn conv(value: Ch64) -> Ch8

Convert between types.

Source§

impl Conversion<Ch64, Ch12>

Source

pub const fn conv(value: Ch64) -> Ch12

Convert between types.

Source§

impl Conversion<Ch64, Ch16>

Source

pub const fn conv(value: Ch64) -> Ch16

Convert between types.

Source§

impl Conversion<Ch64, Ch24>

Source

pub const fn conv(value: Ch64) -> Ch24

Convert between types.

Source§

impl Conversion<Ch64, Ch32>

Source

pub const fn conv(value: Ch64) -> Ch32

Convert between types.

Trait Implementations§

Source§

impl<T: Debug, U: Debug> Debug for Conversion<T, U>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T, U> Freeze for Conversion<T, U>
where T: Freeze,

§

impl<T, U> RefUnwindSafe for Conversion<T, U>
where T: RefUnwindSafe,

§

impl<T, U> Send for Conversion<T, U>
where T: Send,

§

impl<T, U> Sync for Conversion<T, U>
where T: Sync,

§

impl<T, U> Unpin for Conversion<T, U>
where T: Unpin,

§

impl<T, U> UnsafeUnpin for Conversion<T, U>
where T: UnsafeUnpin,

§

impl<T, U> UnwindSafe for Conversion<T, U>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.