pub struct Date<'a> {
pub _tab: Table<'a>,
}
Expand description
Date is either a 32-bit or 64-bit signed integer type representing an elapsed time since UNIX epoch (1970-01-01), stored in either of two units:
- Milliseconds (64 bits) indicating UNIX time elapsed since the epoch (no leap seconds), where the values are evenly divisible by 86400000
- Days (32 bits) since the UNIX epoch
Fields§
§_tab: Table<'a>
Implementations§
Source§impl<'a> Date<'a>
impl<'a> Date<'a>
pub const VT_UNIT: VOffsetT = 4u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args DateArgs, ) -> WIPOffset<Date<'bldr>>
pub fn unit(&self) -> DateUnit
Trait Implementations§
impl<'a> Copy for Date<'a>
impl<'a> StructuralPartialEq for Date<'a>
Auto Trait Implementations§
impl<'a> Freeze for Date<'a>
impl<'a> RefUnwindSafe for Date<'a>
impl<'a> Send for Date<'a>
impl<'a> Sync for Date<'a>
impl<'a> Unpin for Date<'a>
impl<'a> UnwindSafe for Date<'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