pub struct Time<'a> {
pub _tab: Table<'a>,
}
Expand description
Time is either a 32-bit or 64-bit signed integer type representing an elapsed time since midnight, stored in either of four units: seconds, milliseconds, microseconds or nanoseconds.
The integer bitWidth
depends on the unit
and must be one of the following:
- SECOND and MILLISECOND: 32 bits
- MICROSECOND and NANOSECOND: 64 bits
The allowed values are between 0 (inclusive) and 86400 (=246060) seconds (exclusive), adjusted for the time unit (for example, up to 86400000 exclusive for the MILLISECOND unit). This definition doesn’t allow for leap seconds. Time values from measurements with leap seconds will need to be corrected when ingesting into Arrow (for example by replacing the value 86400 with 86399).
Fields§
§_tab: Table<'a>
Implementations§
Source§impl<'a> Time<'a>
impl<'a> Time<'a>
pub const VT_UNIT: VOffsetT = 4u16
pub const VT_BITWIDTH: VOffsetT = 6u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>, args: &'args TimeArgs, ) -> WIPOffset<Time<'bldr>>
pub fn unit(&self) -> TimeUnit
pub fn bitWidth(&self) -> i32
Trait Implementations§
Source§impl Verifiable for Time<'_>
impl Verifiable for Time<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for Time<'a>
impl<'a> StructuralPartialEq for Time<'a>
Auto Trait Implementations§
impl<'a> Freeze for Time<'a>
impl<'a> RefUnwindSafe for Time<'a>
impl<'a> Send for Time<'a>
impl<'a> Sync for Time<'a>
impl<'a> Unpin for Time<'a>
impl<'a> UnwindSafe for Time<'a>
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