#[repr(transparent)]pub struct IntervalUnit(pub i16);Expand description
The unit of an Interval.
All integers in the units below are stored in the endianness indicated by the schema.
Tuple Fields§
§0: i16Implementations§
Source§impl IntervalUnit
impl IntervalUnit
Sourcepub const YEAR_MONTH: Self
pub const YEAR_MONTH: Self
Indicates the number of elapsed whole months, stored as 4-byte signed integers.
Sourcepub const DAY_TIME: Self
pub const DAY_TIME: Self
Indicates the number of elapsed days and milliseconds (no leap seconds), stored as 2 contiguous 32-bit signed integers (8-bytes in total). Support of this IntervalUnit is not required for full Arrow compatibility.
Sourcepub const MONTH_DAY_NANO: Self
pub const MONTH_DAY_NANO: Self
A triple of the number of elapsed months, days, and nanoseconds. The values are stored contiguously in 16-byte blocks. Months and days are encoded as 32-bit signed integers and nanoseconds is encoded as a 64-bit signed integer. Nanoseconds does not allow for leap seconds. Each field is independent (e.g. there is no constraint that nanoseconds have the same sign as days or that the quantity of nanoseconds represents less than a day’s worth of time).
pub const ENUM_MIN: i16 = 0
pub const ENUM_MAX: i16 = 2
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.