set_any_field_string

Function set_any_field_string 

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

Sets any table field with the value of a string. Returns error if the field is not originally set or is with non-scalar value or the provided value cannot be parsed as the field type.

ยงSafety

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