#[repr(C)]pub struct halide_type_t {
pub code: halide_type_code_t,
pub bits: u8,
pub lanes: u16,
}
Expand description
A runtime tag for a type in the halide type system. Can be ints, unsigned ints, or floats of various bit-widths (the ‘bits’ field). Can also be vectors of the same (by setting the ‘lanes’ field to something larger than one). This struct should be exactly 32-bits in size.
Fields§
§code: halide_type_code_t
The basic type code: signed integer, unsigned integer, or floating point.
bits: u8
The number of bits of precision of a single scalar value of this type.
lanes: u16
How many elements in a vector. This is 1 for scalar types.
Trait Implementations§
source§impl Clone for halide_type_t
impl Clone for halide_type_t
source§fn clone(&self) -> halide_type_t
fn clone(&self) -> halide_type_t
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 halide_type_t
impl Debug for halide_type_t
impl Copy for halide_type_t
Auto Trait Implementations§
impl Freeze for halide_type_t
impl RefUnwindSafe for halide_type_t
impl Send for halide_type_t
impl Sync for halide_type_t
impl Unpin for halide_type_t
impl UnwindSafe for halide_type_t
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)