MCPcopy Index your code
hub / github.com/SingleRust/SingleRust / ComputeNonZero

Interface ComputeNonZero

src/shared/statistics/mod.rs:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5use single_utilities::types::Direction;
6
7pub trait ComputeNonZero {
8 fn nonzero_whole<T>(&self, direction: &Direction) -> anyhow::Result<Vec<T>>
9 where
10 T: PrimInt + Unsigned + Zero + AddAssign + Send + Sync;
11
12 fn nonzero_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()>
13 where
14 T: PrimInt + Unsigned + Zero + AddAssign + Send + Sync;
15
16 fn nonzero_whole_masked<T>(
17 &self,
18 direction: &Direction,
19 mask: &[bool],
20 ) -> anyhow::Result<Vec<T>>
21 where
22 T: PrimInt + Unsigned + Zero + AddAssign + Send + Sync;
23}
24
25pub trait ComputeSum {
26 fn sum_whole<T>(&self, direction: &Direction) -> anyhow::Result<Vec<T>>

Callers

nothing calls this directly

Implementers 2

mod.rssrc/memory/statistics/mod.rs
mod.rssrc/backed/statistics/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected