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

Method with_label

src/series.rs:387–393  ·  view source on GitHub ↗

Set an label for the series.

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

Source from the content-addressed store, hash-verified

385
386 /// Set an label for the series.
387 pub fn with_label(mut self, label: impl Into<String>) -> Self {
388 let l = label.into();
389 if !l.is_empty() {
390 self.label = Some(l);
391 }
392 self
393 }
394
395 /// Set the marker style for the series.
396 pub fn with_marker_style(mut self, style: MarkerStyle) -> Self {

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected