#[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_tThe basic type code: signed integer, unsigned integer, or floating point.
bits: u8The number of bits of precision of a single scalar value of this type.
lanes: u16How 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