Casts this interval to `data_type` using `cast_options`.
(
&self,
data_type: &DataType,
cast_options: &CastOptions,
)
| 418 | |
| 419 | /// Casts this interval to `data_type` using `cast_options`. |
| 420 | pub fn cast_to( |
| 421 | &self, |
| 422 | data_type: &DataType, |
| 423 | cast_options: &CastOptions, |
| 424 | ) -> Result<Self> { |
| 425 | Self::try_new( |
| 426 | cast_scalar_value(&self.lower, data_type, cast_options)?, |
| 427 | cast_scalar_value(&self.upper, data_type, cast_options)?, |
| 428 | ) |
| 429 | } |
| 430 | |
| 431 | /// An interval containing only the 'false' truth value. |
| 432 | pub const FALSE: Self = Self { |
no test coverage detected