MCPcopy Create free account
hub / github.com/emilk/egui_plot / is_empty

Method is_empty

egui_plot/src/data.rs:138–144  ·  view source on GitHub ↗

Returns true if there are no data points available and there is no function to generate any.

(&self)

Source from the content-addressed store, hash-verified

136 /// Returns true if there are no data points available and there is no
137 /// function to generate any.
138 pub fn is_empty(&self) -> bool {
139 match self {
140 Self::Owned(points) => points.is_empty(),
141 Self::Generator(_) => false,
142 Self::Borrowed(points) => points.is_empty(),
143 }
144 }
145
146 /// If initialized with a generator function, this will generate `n` evenly
147 /// spaced points in the given range.

Callers 15

find_name_candidateFunction · 0.80
lineMethod · 0.80
polygonMethod · 0.80
textMethod · 0.80
pointsMethod · 0.80
arrowsMethod · 0.80
box_plotMethod · 0.80
bar_chartMethod · 0.80
heatmapMethod · 0.80
uiMethod · 0.80
add_tick_labelsMethod · 0.80
draw_nameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected