get_any_field_float_in_struct

Function get_any_field_float_in_struct 

Source
pub unsafe fn get_any_field_float_in_struct(
    st: &Struct<'_>,
    field: &Field<'_>,
) -> FlatbufferResult<f64>
Expand description

Returns the value of any struct field as a 64-bit floating point, regardless of what type it is. Returns error if the value cannot be parsed as float.

ยงSafety

[st] must contain valid offsets that match the [field].