pub fn update_state(
        &self,
        state: &mut State,
        timer: &Snapshot<'_>,
        layout_settings: &GeneralLayoutSettings,
    ) {
        let comparison = comparison::resolve(&self.settings.comparison_override, timer);
        let comparison = comparison::or_current(comparison, timer);

        let mut draw_info = DrawInfo {
            deltas: Vec::with_capacity(timer.run().len() + 1),
            ..Default::default()
        };

        self.calculate_final_split(timer, &mut draw_info);
        calculate_deltas(timer, comparison, &mut draw_info);
        self.check_live_segment_delta(timer, comparison, &mut draw_info);

        self.calculate_points(state, timer, &draw_info, layout_settings);

        make_uniform(state);
        self.flip(state);
    }
/// Updates the component's state based on the timer and layout settings
/// provided.
Updates the component's state based on the timer and layout settings
provided.
Updates the component ' s state based on the timer and layout settings provided .
pub fn update_state(
        &self,
        state: &mut State,
        timer: &Snapshot<'_>,
        layout_settings: &GeneralLayoutSettings,
    ) {
        let comparison = comparison::resolve(&self.settings.comparison_override, timer);
        let comparison = comparison::or_current(comparison, timer);
        let mut draw_info = DrawInfo {
            deltas: Vec::with_capacity(timer.run().len() + 1),
            ..Default::default()
        };
        self.calculate_final_split(timer, &mut draw_info);
        calculate_deltas(timer, comparison, &mut draw_info);
        self.check_live_segment_delta(timer, comparison, &mut draw_info);
        self.calculate_points(state, timer, &draw_info, layout_settings);
        make_uniform(state);
        self.flip(state);
    }
pub fn update_state ( & self , state : & mut State , timer : & Snapshot < ' _ > , layout_settings : & GeneralLayoutSettings , ) { let comparison = comparison :: resolve ( & self . settings . comparison_override , timer ) ; let comparison = comparison :: or_current ( comparison , timer ) ; let mut draw_info = DrawInfo { deltas : Vec :: with_capacity ( timer . run ( ) . len ( ) + 1 ) , .. Default :: default ( ) } ; self . calculate_final_split ( timer , & mut draw_info ) ; calculate_deltas ( timer , comparison , & mut draw_info ) ; self . check_live_segment_delta ( timer , comparison , & mut draw_info ) ; self . calculate_points ( state , timer , & draw_info , layout_settings ) ; make_uniform ( state ) ; self . flip ( state ) ; }
Updates the component's state based on the timer and layout settings
provided.
Updates the component ' s state based on the timer and layout settings provided .
&self
state
&mut State
timer
&Snapshot<'_>
layout_settings
&GeneralLayoutSettings
&self
state
&mut State
timer
&Snapshot<'_>
layout_settings
&GeneralLayoutSettings