Struct bf16

#[repr(transparent)]
pub struct bf16(pub(in ::core_arch::x86) u16);

The BFloat16 type used in AVX-512 intrinsics.

Fields

0: u16

Implementations

impl bf16

const fn from_bits(bits: u16) -> bf16

Raw transmutation from u16

const fn to_bits(self) -> u16

Raw transmutation to u16

Trait Implementations

impl Clone for bf16

fn clone(&self) -> bf16

impl Copy for bf16

impl Debug for bf16

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

impl TrivialClone for bf16

Auto Trait Implementations

impl Freeze for bf16

impl RefUnwindSafe for bf16

impl Send for bf16

impl Sync for bf16

impl Unpin for bf16

impl UnsafeUnpin for bf16

impl UnwindSafe for bf16

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for bf16 where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for bf16

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for bf16 where T: Copy + Debug,

impl<T> SizeHint for bf16 where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for bf16

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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