pub type EventFn<T> = Box<dyn Fn(T, &[T]) -> T>;
Event function type: fn(t, y) -> T. Integration stops when the return value crosses zero.
fn(t, y) -> T
pub struct EventFn<T>(/* private fields */);