get_field_string

Function get_field_string 

Source
pub unsafe fn get_field_string<'a>(
    table: &Table<'a>,
    field: &Field<'_>,
) -> FlatbufferResult<Option<&'a str>>
Expand description

Gets a String table field given its exact type. Returns empty string if the field is not set. Returns None if no default value is found. Returns error if the type size doesn’t match.

§Safety

The value of the corresponding slot must have type String