pub struct Event<'a> {
pub function: EventFunction<'a>,
pub direction: f64,
pub terminal: Option<usize>,
}Expand description
An event function g(t, y) whose zeros are located during the integration.
Fields§
§function: EventFunction<'a>§direction: f64+1: only zeros where g increases; -1: only where it decreases; 0: both.
terminal: Option<usize>Stop the integration after this many occurrences (SciPy’s terminal); None never stops.
Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Event<'a>
impl<'a> !Send for Event<'a>
impl<'a> !Sync for Event<'a>
impl<'a> !UnwindSafe for Event<'a>
impl<'a> Freeze for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more