Skip to main content

root_as_city_feature

Function root_as_city_feature 

Source
pub fn root_as_city_feature(
    buf: &[u8],
) -> Result<CityFeature<'_>, InvalidFlatbuffer>
Expand description

Verifies that a buffer of bytes contains a CityFeature and returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior use root_as_city_feature_unchecked.