MCPcopy Index your code
hub / github.com/eliotbo/bevy_plot / add

Method add

src/plot/plot.rs:478–485  ·  view source on GitHub ↗
(&mut self, mut plot: Plot)

Source from the content-addressed store, hash-verified

476 }
477
478 pub fn add(&mut self, mut plot: Plot) {
479 // generate a new id
480 use rand::Rng;
481 let mut rng = rand::thread_rng();
482 let id = rng.gen();
483 plot.id = id;
484 self.plots.insert(id, plot);
485 }
486}
487
488/// Contains all relevant information to both the look of the canvas and the data to be plotted.

Callers 15

starFunction · 0.80
buildMethod · 0.80
queue_colored_mesh2dFunction · 0.80
setupFunction · 0.80
setupFunction · 0.80
main_setupFunction · 0.80
spawn_graphFunction · 0.80
plot_pointsFunction · 0.80
queue_colored_mesh2dFunction · 0.80
plot_fnFunction · 0.80
plot_fnFunction · 0.80
queue_colored_mesh2dFunction · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected