[][src]Struct accel::device::ContextRef

pub struct ContextRef {
    ptr: CUcontext,
}

Non-Owend handler for CUDA context

The validity of reference is checked dynamically. CUDA APIs (e.g. cuPointerGetAttribute) allow us to get a pointer to CUDA context, but its validity cannot be assured by Rust lifetime system.

Fields

ptr: CUcontext

Methods

impl ContextRef[src]

pub(crate) fn from_ptr(ptr: CUcontext) -> Self[src]

Trait Implementations

impl Clone for ContextRef[src]

impl Contexted for ContextRef[src]

impl Copy for ContextRef[src]

impl Debug for ContextRef[src]

impl PartialEq<ContextOwned> for ContextRef[src]

impl PartialEq<ContextRef> for ContextRef[src]

impl PartialEq<ContextRef> for ContextOwned[src]

impl Send for ContextRef[src]

impl StructuralPartialEq for ContextRef[src]

impl Sync for ContextRef[src]

Auto Trait Implementations

impl RefUnwindSafe for ContextRef

impl Unpin for ContextRef

impl UnwindSafe for ContextRef

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.