set_any_field_float

Function set_any_field_float 

Source
pub unsafe fn set_any_field_float(
    buf: &mut [u8],
    table_loc: usize,
    field: &Field<'_>,
    v: f64,
) -> FlatbufferResult<()>
Expand description

Sets any table field with the value of a 64-bit floating point. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be cast into the field type.

ยงSafety

[buf] must contain a valid root table and valid offset to it.