public struct AnyDerivative : Differentiable & AdditiveArithmetic

A type-erased derivative value.

The AnyDerivative type forwards its operations to an arbitrary underlying base derivative value conforming to Differentiable and AdditiveArithmetic, hiding the specifics of the underlying value.