Enum ocl::enums::PlatformInfoResult
[−]
[src]
pub enum PlatformInfoResult {
Profile(String),
Version(String),
Name(String),
Vendor(String),
Extensions(String),
Error(Box<Error>),
}Platform info result.
Variants
Profile(String)Version(String)Name(String)Vendor(String)Extensions(String)Error(Box<Error>)Methods
impl PlatformInfoResult
fn from_bytes(request: PlatformInfo,
result: Result<Vec<u8>, Error>)
-> PlatformInfoResult
result: Result<Vec<u8>, Error>)
-> PlatformInfoResult
fn as_opencl_version(&self) -> Result<OpenclVersion, Error>
Parse the Version string and get a numeric result as OpenclVersion.
Trait Implementations
impl From<Error> for PlatformInfoResult
fn from(err: Error) -> PlatformInfoResult
Performs the conversion.
impl From<IntoStringError> for PlatformInfoResult
fn from(err: IntoStringError) -> PlatformInfoResult
Performs the conversion.
impl From<NulError> for PlatformInfoResult
fn from(err: NulError) -> PlatformInfoResult
Performs the conversion.