get_field_float

Function get_field_float 

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

Gets a floating point table field given its exact type. Returns default float value if the field is not set. Returns None if no default value is found. Returns error if the type doesn’t match.

§Safety

The value of the corresponding slot must have type T