Struct rustacuda::context::ContextStack[][src]

pub struct ContextStack;
Expand description

Type used to represent the thread-local context stack.

Implementations

Pop the current context off the stack and return the handle. That context may then be made current again (perhaps on a different CPU thread) by calling push.

Example

let unowned = ContextStack::pop()?;

Push the given context to the top of the stack

Example

let unowned = ContextStack::pop()?;
ContextStack::push(&unowned)?;

Trait Implementations

Formats the value using the given formatter. 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.