Struct ocl_core::types::structs::OpenclVersion[][src]

pub struct OpenclVersion { /* fields omitted */ }

Parsed OpenCL version in the layout ({major}, {minor}).

ex.: 'OpenCL 1.2' -> OpenclVersion(1, 2).

Methods

impl OpenclVersion
[src]

Parse the string ver and return a dual-integer result as OpenclVersion.

Looks for the sequence of chars, "OpenCL" (non-case-sensitive), then splits the word just after that (at '.') and parses the two results into integers (major and minor version numbers).

Trait Implementations

impl Debug for OpenclVersion
[src]

Formats the value using the given formatter. Read more

impl Clone for OpenclVersion
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for OpenclVersion
[src]

impl PartialEq for OpenclVersion
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for OpenclVersion
[src]

impl PartialOrd for OpenclVersion
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for OpenclVersion
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl From<[u16; 2]> for OpenclVersion
[src]

Performs the conversion.

impl Display for OpenclVersion
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for OpenclVersion

impl Sync for OpenclVersion