pub trait IntoGrad<'a, Args, Output, Err> {
// Required method
fn into_grad(
self,
argument_numbers: impl IntoOption<&'a [i32]>,
) -> impl FnMut(Args) -> Result<Output> + 'a;
}
Expand description
Trait for functions/closures that can be converted into a closure that computes the gradient.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.