get_field_integer

Function get_field_integer 

Source
pub unsafe fn get_field_integer<T: for<'a> Follow<'a, Inner = T> + PrimInt + FromPrimitive>(
    table: &Table<'_>,
    field: &Field<'_>,
) -> FlatbufferResult<Option<T>>
Expand description

Gets an integer table field given its exact type. Returns default integer value if the field is not set. Returns None if no default value is found. Returns error if the type size doesn’t match.

§Safety

The value of the corresponding slot must have type T