get_field_vector

Function get_field_vector 

Source
pub unsafe fn get_field_vector<'a, T: Follow<'a, Inner = T>>(
    table: &Table<'a>,
    field: &Field<'_>,
) -> FlatbufferResult<Option<Vector<'a, T>>>
Expand description

Gets a Vector table field given its exact type. Returns empty vector if the field is not set. Returns error if the type doesn’t match.

§Safety

The value of the corresponding slot must have type Vector