[][src]Struct accel::memory::registered::RegisteredMemory

pub struct RegisteredMemory<'a, T> {
    context: Context,
    data: &'a mut [T],
}

Fields

context: Contextdata: &'a mut [T]

Methods

impl<'a, T: Scalar> RegisteredMemory<'a, T>[src]

pub fn new(context: &Context, data: &'a mut [T]) -> Self[src]

Trait Implementations

impl<'a, T> Contexted for RegisteredMemory<'a, T>[src]

impl<'_, T: Scalar> Continuous for RegisteredMemory<'_, T>[src]

impl<'a, T: Debug> Debug for RegisteredMemory<'a, T>[src]

impl<'_, T> Deref for RegisteredMemory<'_, T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<'_, T> DerefMut for RegisteredMemory<'_, T>[src]

impl<'arg, 'a: 'arg, T: Scalar> DeviceSend for &'arg RegisteredMemory<'a, T>[src]

type Target = *const T

Type on device

impl<'arg, 'a: 'arg, T: Scalar> DeviceSend for &'arg mut RegisteredMemory<'a, T>[src]

type Target = *mut T

Type on device

impl<'_, T> Drop for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar> Memcpy<[T]> for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar, Dim: Dimension> Memcpy<Array<T, Dim>> for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar> Memcpy<DeviceMemory<T>> for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar> Memcpy<PageLockedMemory<T>> for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar, Dim: Dimension> Memcpy<RegisteredMemory<'_, T>> for Array<T, Dim>[src]

impl<'_, T: Scalar> Memcpy<RegisteredMemory<'_, T>> for [T][src]

impl<'_, T: Scalar> Memcpy<RegisteredMemory<'_, T>> for DeviceMemory<T>[src]

impl<'_, '_, T: Scalar> Memcpy<RegisteredMemory<'_, T>> for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar> Memcpy<RegisteredMemory<'_, T>> for PageLockedMemory<T>[src]

impl<'_, T: Scalar> Memory for RegisteredMemory<'_, T>[src]

type Elem = T

Scalar type of each element

impl<'_, T: Scalar> PartialEq<[T]> for RegisteredMemory<'_, T>[src]

impl<'_, T: Scalar> PartialEq<RegisteredMemory<'_, T>> for RegisteredMemory<'_, T>[src]

impl<'_, T> Send for RegisteredMemory<'_, T>[src]

impl<'_, T> Sync for RegisteredMemory<'_, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for RegisteredMemory<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Unpin for RegisteredMemory<'a, T>

impl<'a, T> !UnwindSafe for RegisteredMemory<'a, T>

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, 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.