get_any_field_integer_in_struct

Function get_any_field_integer_in_struct 

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

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

ยงSafety

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