Struct digit_layout::TypeOf

source ·
pub struct TypeOf<const N: u32>;
Expand description

A type template for the TypeOf_ trait to implement.

Trait Implementations§

source§

impl TypeOf_<$const> for TypeOf<CBF16>

§

type Type = bf16

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CF16_2>

§

type Type = [f16; 2]

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CU32>

§

type Type = u32

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CF64>

§

type Type = f64

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CU64>

§

type Type = u64

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CU16>

§

type Type = u16

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CF16>

§

type Type = f16

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CU8>

§

type Type = u8

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CF32>

§

type Type = f32

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CI16>

§

type Type = i16

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CBOOL>

§

type Type = bool

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CI8>

§

type Type = i8

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CI64>

§

type Type = i64

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CBF16_2>

§

type Type = [bf16; 2]

The type associated with the layout.
source§

impl TypeOf_<$const> for TypeOf<CI32>

§

type Type = i32

The type associated with the layout.

Auto Trait Implementations§

§

impl<const N: u32> Freeze for TypeOf<N>

§

impl<const N: u32> RefUnwindSafe for TypeOf<N>

§

impl<const N: u32> Send for TypeOf<N>

§

impl<const N: u32> Sync for TypeOf<N>

§

impl<const N: u32> Unpin for TypeOf<N>

§

impl<const N: u32> UnwindSafe for TypeOf<N>

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

§

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

§

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.