vecdb 0.10.2

High-performance mutable persistent vectors built on rawdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::ops::Mul;

use super::BinaryTransform;

/// (a, b) -> a * b
pub struct Times;

impl<T: Mul<U, Output = O>, U, O> BinaryTransform<T, U, O> for Times {
    #[inline(always)]
    fn apply(lhs: T, rhs: U) -> O {
        lhs * rhs
    }
}