Returns true if there are no data points available and there is no function to generate any.
(&self)
| 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. |
no outgoing calls
no test coverage detected