Skip to main content

FoldFunction

Trait FoldFunction 

Source
pub trait FoldFunction: Send + Sync {
    // Required method
    fn fold(&self, accumulator: Vec<u8>, value: Vec<u8>) -> Vec<u8> ;
}
Expand description

Function for folding elements with an accumulator.

Required Methods§

Source

fn fold(&self, accumulator: Vec<u8>, value: Vec<u8>) -> Vec<u8>

Fold a value into the accumulator.

Implementors§