MCPcopy Create free account
hub / github.com/eliotbo/bevy_plot / to_int32

Method to_int32

src/plot/plot.rs:367–380  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

365
366impl MarkerStyle {
367 pub fn to_int32(&self) -> i32 {
368 match self {
369 MarkerStyle::None => -1,
370 MarkerStyle::Square => 0,
371 MarkerStyle::Heart => 1,
372 MarkerStyle::Triangle => 3,
373 MarkerStyle::Rhombus => 2,
374 MarkerStyle::Star => 4,
375 MarkerStyle::Moon => 5,
376 MarkerStyle::Cross => 6,
377 MarkerStyle::X => 7,
378 MarkerStyle::Circle => 8,
379 }
380 }
381}
382
383/// The ```None``` variant can be used to avoid spawning the

Callers 5

plot_pointsFunction · 0.80
update_bezier_uniformFunction · 0.80
plot_fnFunction · 0.80
update_bezier_uniformFunction · 0.80
plot_fnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected