dsalgo 0.3.7

A package for Datastructures and Algorithms.
Documentation
1
2
3
4
5
6
7
8
use crate::binary_operation_id::BinaryOperationId;

pub trait BinaryFunction<Id: BinaryOperationId> {
    type Lhs;
    type Rhs;
    type Codomain;
    fn map(_: Self::Lhs, _: Self::Rhs) -> Self::Codomain;
}