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: u16 = 4u16
pub unsafe fn init_from_table(table: Table<'a>) -> Date<'a>
pub fn create<'bldr, 'args, 'mut_bldr>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args DateArgs,
) -> WIPOffset<Date<'bldr>>where
'bldr: 'args,
'args: 'mut_bldr,
pub fn unit(&self) -> DateUnit
Trait Implementations§
Source§impl Verifiable for Date<'_>
impl Verifiable for Date<'_>
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more