Struct opencl3::svm::SvmVec[][src]

pub struct SvmVec<'a, T> { /* fields omitted */ }
Expand description

An OpenCL Shared Virtual Memory (SVM) vector.
It has the lifetime of the Context that it was constructed from.
Note: T cannot be a “zero sized type” (ZST).

Implementations

The capacity of the vector.

The length of the vector.

Whether the vector is empty

Safety

May fail to grow buf if memory is not available for new_len.

Construct an empty SvmVec from a Context and the svm_capabilities of the device (or devices) in the Context.
The SvmVec has the lifetime of the Context.

Reserve vector capacity.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.