[][src]Enum opencl_core::NumberType

pub enum NumberType {
    ClChar(NumberTypeKind),
    ClUchar(NumberTypeKind),
    ClShort(NumberTypeKind),
    ClUshort(NumberTypeKind),
    ClInt(NumberTypeKind),
    ClUint(NumberTypeKind),
    ClLong(NumberTypeKind),
    ClUlong(NumberTypeKind),
    ClFloat(NumberTypeKind),
    ClHalf,
    ClBool,
    SizeT,
    ClDouble,
}

Variants

ClUshort(NumberTypeKind)
ClHalf
ClBool
SizeT
ClDouble

Methods

impl NumberType[src]

pub fn size_of_t(&self) -> usize[src]

pub fn matches(&self, other: NumberType) -> bool[src]

pub fn match_or_panic(&self, other: NumberType)[src]

pub fn type_check(&self, other: NumberType) -> Result<(), Error>[src]

Trait Implementations

impl Clone for NumberType[src]

impl Copy for NumberType[src]

impl Debug for NumberType[src]

impl Eq for NumberType[src]

impl Hash for NumberType[src]

impl PartialEq<NumberType> for NumberType[src]

impl StructuralEq for NumberType[src]

impl StructuralPartialEq for NumberType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.