Skip to main content

with_next_plot_item_array_style

Function with_next_plot_item_array_style 

Source
pub fn with_next_plot_item_array_style<'a, R>(
    style: PlotItemArrayStyle<'a>,
    f: impl FnOnce() -> R,
) -> R
Expand description

Apply array-backed item styling to the next plot submission executed inside f.

This is intentionally closure-scoped so borrowed slices stay valid for the entire duration of the next plot call and cannot leak into later frames accidentally.