MCPcopy Index your code
hub / github.com/emilk/egui_plot / add

Method add

egui_plot/src/plot.rs:2015–2017  ·  view source on GitHub ↗

Add an arbitrary item.

(&mut self, item: impl PlotItem + 'a)

Source from the content-addressed store, hash-verified

2013
2014 /// Add an arbitrary item.
2015 pub fn add(&mut self, item: impl PlotItem + 'a) {
2016 self.items.push(Box::new(item));
2017 }
2018
2019 /// Add an arbitrary item.
2020 pub fn add_item(&mut self, item: Box<dyn PlotItem>) {

Callers 15

show_controlsMethod · 0.80
show_controlsMethod · 0.80
show_controlsMethod · 0.80
show_controlsMethod · 0.80
show_controlsMethod · 0.80
show_plotMethod · 0.80
show_controlsMethod · 0.80
show_controlsMethod · 0.80
info_panelMethod · 0.80
make_cellMethod · 0.80
paint_backgroundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected