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]

[src]

[src]

[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]

[src]

Formats the value using the given formatter.

impl Clone for OpenclVersion
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for OpenclVersion
[src]

impl PartialEq for OpenclVersion
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for OpenclVersion
[src]

impl PartialOrd for OpenclVersion
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

Performs the conversion.

impl Display for OpenclVersion
[src]

[src]

Formats the value using the given formatter. Read more