1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use super::*;
use crate::prelude::*;
pub type DateChunked = Logical<DateType, Int32Type>;
impl From<Int32Chunked> for DateChunked {
fn from(ca: Int32Chunked) -> Self {
DateChunked::new(ca)
}
}
impl Int32Chunked {
pub fn into_date(self) -> DateChunked {
DateChunked::new(self)
}
}
impl LogicalType for DateChunked {
fn dtype(&self) -> &'static DataType {
&DataType::Date
}
#[cfg(feature = "dtype-date")]
fn get_any_value(&self, i: usize) -> AnyValue<'_> {
self.0.get_any_value(i).into_date()
}
}