Add an arbitrary item.
(&mut self, item: impl PlotItem + 'a)
| 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>) { |
no outgoing calls
no test coverage detected