pub struct ComputeData<'a, F: Field, HAL: ComputeLayer<F>, HostAllocatorType, DeviceAllocatorType>where
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, HAL::DevMem>,{
pub hal: &'a HAL,
pub host_alloc: HostAllocatorType,
pub dev_alloc: DeviceAllocatorType,
/* private fields */
}
Fields§
§hal: &'a HAL
§host_alloc: HostAllocatorType
§dev_alloc: DeviceAllocatorType
Implementations§
Source§impl<'a, F: Field, HAL: ComputeLayer<F>, HostAllocatorType, DeviceAllocatorType> ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>where
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, HAL::DevMem>,
impl<'a, F: Field, HAL: ComputeLayer<F>, HostAllocatorType, DeviceAllocatorType> ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>where
HostAllocatorType: ComputeAllocator<F, CpuMemory>,
DeviceAllocatorType: ComputeAllocator<F, HAL::DevMem>,
Auto Trait Implementations§
impl<'a, F, HAL, HostAllocatorType, DeviceAllocatorType> Freeze for ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
HostAllocatorType: Freeze,
DeviceAllocatorType: Freeze,
impl<'a, F, HAL, HostAllocatorType, DeviceAllocatorType> RefUnwindSafe for ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
HostAllocatorType: RefUnwindSafe,
DeviceAllocatorType: RefUnwindSafe,
HAL: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, F, HAL, HostAllocatorType, DeviceAllocatorType> Send for ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>
impl<'a, F, HAL, HostAllocatorType, DeviceAllocatorType> Sync for ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>
impl<'a, F, HAL, HostAllocatorType, DeviceAllocatorType> Unpin for ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>
impl<'a, F, HAL, HostAllocatorType, DeviceAllocatorType> UnwindSafe for ComputeData<'a, F, HAL, HostAllocatorType, DeviceAllocatorType>where
<F as WithUnderlier>::Underlier: Sized,
HostAllocatorType: UnwindSafe,
DeviceAllocatorType: UnwindSafe,
HAL: RefUnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more