Expand description
§BiFunction Types
Provides Rust implementations of bi-function traits for computing output values from two input references. BiFunctions borrow input values (not consuming them) and produce output values.
It is similar to the Fn(&T, &U) -> R trait in the standard library.
This module provides the BiFunction<T, U, R> trait and three
implementations:
BoxBiFunction: Single ownership, not cloneableArcBiFunction: Thread-safe shared ownership, cloneableRcBiFunction: Single-threaded shared ownership, cloneable
§Author
Haixing Hu
Structs§
- ArcBi
Function - ArcBiFunction - thread-safe bi-function wrapper
- ArcConditional
BiFunction - ArcConditionalBiFunction struct
- BoxBi
Function - BoxBiFunction - bi-function wrapper based on
Box<dyn Fn> - BoxConditional
BiFunction - BoxConditionalBiFunction struct
- RcBi
Function - RcBiFunction - single-threaded bi-function wrapper
- RcConditional
BiFunction - RcConditionalBiFunction struct
Traits§
- BiFunction
- BiFunction trait - computes output from two input references
- FnBi
Function Ops - Extension trait for closures implementing
Fn(&T, &U) -> R
Type Aliases§
- ArcBinary
Function - Type alias for
ArcBiFunction<T, T, R> - BoxBinary
Function - Type alias for
BoxBiFunction<T, T, R> - RcBinary
Function - Type alias for
RcBiFunction<T, T, R>