(interval: Interval)
| 312 | |
| 313 | impl UniformDistribution { |
| 314 | fn try_new(interval: Interval) -> Result<Self> { |
| 315 | assert_ne_or_internal_err!( |
| 316 | interval.data_type(), |
| 317 | DataType::Boolean, |
| 318 | "Construction of a boolean `Uniform` distribution is prohibited, create a `Bernoulli` distribution instead." |
| 319 | ); |
| 320 | |
| 321 | Ok(Self { interval }) |
| 322 | } |
| 323 | |
| 324 | pub fn data_type(&self) -> DataType { |
| 325 | self.interval.data_type() |
nothing calls this directly
no test coverage detected