pub struct Duration<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> Duration<'a>
impl<'a> Duration<'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>(
_fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
args: &'args DurationArgs
) -> WIPOffset<Duration<'bldr>>
pub fn unit(&self) -> TimeUnit
Trait Implementations§
source§impl<'a> PartialEq<Duration<'a>> for Duration<'a>
impl<'a> PartialEq<Duration<'a>> for Duration<'a>
source§impl Verifiable for Duration<'_>
impl Verifiable for Duration<'_>
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.