pub trait Op {
    fn op<F: FnOnce(f32, f32) -> f32>(&self, rhs: &Self, op: F) -> Self;
    fn op_to<T, F: FnOnce(f32, f32) -> T>(&self, rhs: &Self, op: F) -> T;
}
Expand description

A trait for values that support binary operations.

Required Methods

Returns the result of the operation in the same type.

Returns the result of the operation in a different type.

Implementors