pub struct CpuLayerHolder<F> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<F: TowerTop> ComputeHolder<F, CpuLayer<F>> for CpuLayerHolder<F>
impl<F: TowerTop> ComputeHolder<F, CpuLayer<F>> for CpuLayerHolder<F>
type HostComputeAllocator<'a> = BumpAllocator<'a, F, CpuMemory>
type DeviceComputeAllocator<'a> = BumpAllocator<'a, F, <CpuLayer<F> as ComputeLayer<F>>::DevMem>
fn to_data<'a, 'b>(
&'a mut self,
) -> ComputeData<'a, F, CpuLayer<F>, Self::HostComputeAllocator<'b>, Self::DeviceComputeAllocator<'b>>where
'a: 'b,
Source§impl<F: Default> Default for CpuLayerHolder<F>
impl<F: Default> Default for CpuLayerHolder<F>
Source§fn default() -> CpuLayerHolder<F>
fn default() -> CpuLayerHolder<F>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<F> Freeze for CpuLayerHolder<F>
impl<F> RefUnwindSafe for CpuLayerHolder<F>where
F: RefUnwindSafe,
impl<F> Send for CpuLayerHolder<F>where
F: Send,
impl<F> Sync for CpuLayerHolder<F>where
F: Sync,
impl<F> Unpin for CpuLayerHolder<F>where
F: Unpin,
impl<F> UnwindSafe for CpuLayerHolder<F>where
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