MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / CombineOp

Interface CombineOp

ciphercore-base/src/inline/data_structures.rs:3–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use crate::errors::Result;
2
3pub(super) trait CombineOp<T> {
4 fn combine(&mut self, arg1: T, arg2: T) -> Result<T>;
5}
6
7// Simple sum computation in the form of binary tree. `combine_op` must be associative.
8// Depth: RoundUp(log(len))

Callers

nothing calls this directly

Implementers 3

data_structures.rsciphercore-base/src/inline/data_struct
associative_iterate_inliner.rsciphercore-base/src/inline/associative
exponential_inliner.rsciphercore-base/src/inline/exponential

Calls

no outgoing calls

Tested by

no test coverage detected