Struct cuda_oxide::mem::DevicePtr[][src]

pub struct DevicePtr<'a> { /* fields omitted */ }
Expand description

A slice into the device memory.

Implementations

Synchronously copies data from self to target. Panics if length is not equal.

Asynchronously copies data from self to target. Panics if length is not equal.

Synchronously copies data from source to self. Panics if length is not equal.

Asynchronously copies data from source to self. Panics if length is not equal.

Gets a subslice of this slice from [from:to]

Gets the length of this slice

Check if the slice’s length is 0

Synchronously loads the data from this slice into a local buffer

Asynchronously loads the data from this slice into a local buffer. The contents of the buffer are undefined until stream.sync is called. The output must not be dropped until the stream is synced.

Synchronously stores host data from data to self.

Asynchronously stores host data from data to self. The data must not be dropped or mutated until stream.sync is called.

Asynchronously stores host data from data to self. data will be dropped once the Stream is synced or dropped.

Synchronously set the contents of self to data repeated to fill length

Asynchronously set the contents of self to data repeated to fill length

Synchronously set the contents of self to data repeated to fill length. Panics if Self::len is not a multiple of 2.

Asynchronously set the contents of self to data repeated to fill length. Panics if Self::len is not a multiple of 2.

Synchronously set the contents of self to data repeated to fill length. Panics if Self::len is not a multiple of 4.

Asynchronously set the contents of self to data repeated to fill length. Panics if Self::len is not a multiple of 4.

Gets a reference to the owning handle

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

WARNING: this is unsafe!

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.