pub trait FrameValue {
type Output;
// Required methods
fn get_frame_value(
event: &Event,
source_type: SourceType,
delta_t: f64,
practical_d_max: f32,
delta_t_max: DeltaT,
view_mode: FramedViewMode,
px: Option<SaeTime>,
) -> Self::Output;
fn max_f32() -> f32;
}
Expand description
A trait for types that can be used as the value of a pixel in a Frame
.
Required Associated Types§
Required Methods§
Sourcefn get_frame_value(
event: &Event,
source_type: SourceType,
delta_t: f64,
practical_d_max: f32,
delta_t_max: DeltaT,
view_mode: FramedViewMode,
px: Option<SaeTime>,
) -> Self::Output
fn get_frame_value( event: &Event, source_type: SourceType, delta_t: f64, practical_d_max: f32, delta_t_max: DeltaT, view_mode: FramedViewMode, px: Option<SaeTime>, ) -> Self::Output
Get the frame-normalized intensity value of an event
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.