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

Method with_label

src/reference_lines.rs:34–40  ·  view source on GitHub ↗

Set the label for this line (will appear in legend).

(mut self, label: impl Into<String>)

Source from the content-addressed store, hash-verified

32
33 /// Set the label for this line (will appear in legend).
34 pub fn with_label(mut self, label: impl Into<String>) -> Self {
35 let l = label.into();
36 if !l.is_empty() {
37 self.label = Some(l);
38 }
39 self
40 }
41
42 /// Set the color of the line.
43 pub fn with_color(mut self, color: Color) -> Self {

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected