pub struct MegakernelResidentDispatchScratch { /* private fields */ }Expand description
Reusable host storage for resident megakernel dispatch/update loops.
Implementations§
Source§impl MegakernelResidentDispatchScratch
impl MegakernelResidentDispatchScratch
Sourcepub fn new() -> Self
pub fn new() -> Self
Allocate empty scratch. The first dispatch sizes the internal buffers;
later dispatches reuse those allocations through the backend _into
path and readback swap-drain.
Sourcepub fn retained_output_slots(&self) -> usize
pub fn retained_output_slots(&self) -> usize
Number of backend output slots retained for reuse.
Sourcepub fn retained_output_bytes(&self) -> usize
pub fn retained_output_bytes(&self) -> usize
Total bytes retained in reusable backend output slots.
Trait Implementations§
Source§impl Clone for MegakernelResidentDispatchScratch
impl Clone for MegakernelResidentDispatchScratch
Source§fn clone(&self) -> MegakernelResidentDispatchScratch
fn clone(&self) -> MegakernelResidentDispatchScratch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for MegakernelResidentDispatchScratch
Source§impl PartialEq for MegakernelResidentDispatchScratch
impl PartialEq for MegakernelResidentDispatchScratch
Source§fn eq(&self, other: &MegakernelResidentDispatchScratch) -> bool
fn eq(&self, other: &MegakernelResidentDispatchScratch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MegakernelResidentDispatchScratch
Auto Trait Implementations§
impl Freeze for MegakernelResidentDispatchScratch
impl RefUnwindSafe for MegakernelResidentDispatchScratch
impl Send for MegakernelResidentDispatchScratch
impl Sync for MegakernelResidentDispatchScratch
impl Unpin for MegakernelResidentDispatchScratch
impl UnsafeUnpin for MegakernelResidentDispatchScratch
impl UnwindSafe for MegakernelResidentDispatchScratch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.