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

Method new

src/series.rs:48–50  ·  view source on GitHub ↗

Create a line style from an explicit width and line type.

(width: Size, line_type: LineType)

Source from the content-addressed store, hash-verified

46impl LineStyle {
47 /// Create a line style from an explicit width and line type.
48 pub fn new(width: Size, line_type: LineType) -> Self {
49 Self { width, line_type }
50 }
51
52 /// Create a solid line style with the default width of 1 logical pixel.
53 pub fn solid() -> Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected