Enum cl3::info_type::InfoType [−][src]
pub enum InfoType { Int(cl_int), Uint(cl_uint), Ulong(cl_ulong), Size(size_t), Ptr(intptr_t), VecUchar(Vec<cl_uchar>), VecUlong(Vec<cl_ulong>), VecSize(Vec<size_t>), VecIntPtr(Vec<intptr_t>), VecNameVersion(Vec<cl_name_version>), VecImageFormat(Vec<cl_image_format>), VecVecUchar(Vec<Vec<cl_uchar>>), }
Expand description
A Rust enum to handle OpenCL API “Info” function return types.
It provides functions to extract each data type from the enum.
The functions will panic if they are called for the incorrect type.
Variants
Int(cl_int)
Uint(cl_uint)
Ulong(cl_ulong)
Size(size_t)
Ptr(intptr_t)
VecNameVersion(Vec<cl_name_version>)
VecImageFormat(Vec<cl_image_format>)
Implementations
impl InfoType
[src]
impl InfoType
[src]pub fn to_string(self) -> String
[src]
pub fn to_string(self) -> String
[src]Get a Vec<cl_uchar>
aka Vec<u8>
as a String.
Note: it uses from_utf8_lossy to convert any invalid characters to
std::char::REPLACEMENT_CHARACTER.
returns a utf8 String.
pub fn to_int(self) -> cl_int
[src]
pub fn to_uint(self) -> cl_uint
[src]
pub fn to_ulong(self) -> cl_ulong
[src]
pub fn to_size(self) -> size_t
[src]
pub fn to_ptr(self) -> intptr_t
[src]
pub fn to_vec_uchar(self) -> Vec<cl_uchar>
[src]
pub fn to_vec_ulong(self) -> Vec<cl_ulong>
[src]
pub fn to_vec_size(self) -> Vec<size_t>
[src]
pub fn to_vec_intptr(self) -> Vec<intptr_t>
[src]
pub fn to_vec_name_version(self) -> Vec<cl_name_version>
[src]
pub fn to_vec_image_format(self) -> Vec<cl_image_format>
[src]
pub fn to_vec_vec_uchar(self) -> Vec<Vec<cl_uchar>>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InfoType
impl Send for InfoType
impl Sync for InfoType
impl Unpin for InfoType
impl UnwindSafe for InfoType
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more