Skip to main content

DiscreteEventPredicate

Trait DiscreteEventPredicate 

Source
pub trait DiscreteEventPredicate {
    // Required method
    fn state_at(&self, time_seconds: f64) -> bool;
}
Expand description

A boolean state function of time used to find discrete state changes.

Required Methods§

Source

fn state_at(&self, time_seconds: f64) -> bool

Return the discrete state at time_seconds.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> DiscreteEventPredicate for F
where F: Fn(f64) -> bool,