MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / new

Method new

src/ticks.rs:29–35  ·  view source on GitHub ↗

Create a new tick.

(value: f64, step_size: f64, line_type: TickWeight)

Source from the content-addressed store, hash-verified

27impl Tick {
28 /// Create a new tick.
29 pub fn new(value: f64, step_size: f64, line_type: TickWeight) -> Self {
30 Self {
31 value,
32 step_size,
33 line_type,
34 }
35 }
36}
37
38/// A function which formats tick values into strings for display on the axis.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected