pub struct ScanOutput {
pub offsets: Buffer,
pub total: u32,
pub levels: usize,
}Expand description
What a scan produced.
Fields§
§offsets: BufferThe exclusive prefix sum, one u32 per input element.
total: u32The sum of every input element.
levels: usizeLevels the hierarchy needed. One below PrefixScan::BLOCK elements,
three at 129³, zero when there was nothing to scan.
Exposed because a test that does not know the depth cannot tell a single-level scan from a multi-level one, and the multi-level path is the one with a cross-block bug to have.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScanOutput
impl !UnwindSafe for ScanOutput
impl Forget for ScanOutput
impl Freeze for ScanOutput
impl Send for ScanOutput
impl Sync for ScanOutput
impl Unpin for ScanOutput
impl UnsafeUnpin for ScanOutput
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