Struct kn_cuda_sys::bindings::__half2_raw
source · #[repr(C, align(4))]pub struct __half2_raw {
pub x: c_ushort,
pub y: c_ushort,
}Expand description
\ingroup CUDA_MATH_INTRINSIC_HALF \brief __half2_raw data type \details Type allows static initialization of \p half2 until it becomes a builtin type.
-
Note: this initialization is as a bit-field representation of \p half2, and not a conversion from \p short2 to \p half2. Such representation will be deprecated in a future version of CUDA.
-
Note: this is visible to non-nvcc compilers, including C-only compilations
Fields§
§x: c_ushort§y: c_ushortTrait Implementations§
source§impl Clone for __half2_raw
impl Clone for __half2_raw
source§fn clone(&self) -> __half2_raw
fn clone(&self) -> __half2_raw
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for __half2_raw
impl Debug for __half2_raw
impl Copy for __half2_raw
Auto Trait Implementations§
impl Freeze for __half2_raw
impl RefUnwindSafe for __half2_raw
impl Send for __half2_raw
impl Sync for __half2_raw
impl Unpin for __half2_raw
impl UnwindSafe for __half2_raw
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more