pub struct IntervalSpan {
pub months: i32,
pub days: i32,
pub micros: i64,
}Expand description
v7.37.5 β-P4 — element type for Value::IntervalArray. Mirrors
the {months, days, micros} shape of scalar Value::Interval,
broken out as a named struct so IntervalArray’s element type
is concrete (24 bytes, packed) instead of an enum-boxed Value.
All three dimensions are independent — IntervalSpan { days: 1, .. } is distinct from IntervalSpan { micros: 86_400_000_000, .. } per PG byte-equal.
Fields§
§months: i32§days: i32§micros: i64Trait Implementations§
Source§impl Clone for IntervalSpan
impl Clone for IntervalSpan
Source§fn clone(&self) -> IntervalSpan
fn clone(&self) -> IntervalSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IntervalSpan
Source§impl Debug for IntervalSpan
impl Debug for IntervalSpan
impl Eq for IntervalSpan
Source§impl PartialEq for IntervalSpan
impl PartialEq for IntervalSpan
impl StructuralPartialEq for IntervalSpan
Auto Trait Implementations§
impl Freeze for IntervalSpan
impl RefUnwindSafe for IntervalSpan
impl Send for IntervalSpan
impl Sync for IntervalSpan
impl Unpin for IntervalSpan
impl UnsafeUnpin for IntervalSpan
impl UnwindSafe for IntervalSpan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more