pub struct FcbWriter<'a> { /* private fields */ }Expand description
Main writer for FlatCityBuf (FCB) format
FcbWriter handles the serialization of CityJSON data into the FCB binary format. It manages both header and feature writing, using a temporary file for feature storage before final assembly.
Implementations§
Source§impl<'a> FcbWriter<'a>
impl<'a> FcbWriter<'a>
Sourcepub fn new(
cj: CityJSON,
header_option: Option<HeaderWriterOptions>,
attr_schema: Option<AttributeSchema>,
semantic_attr_schema: Option<AttributeSchema>,
) -> Result<Self>
pub fn new( cj: CityJSON, header_option: Option<HeaderWriterOptions>, attr_schema: Option<AttributeSchema>, semantic_attr_schema: Option<AttributeSchema>, ) -> Result<Self>
Sourcepub fn add_feature(&mut self, feature: &'a CityJSONFeature) -> Result<()>
pub fn add_feature(&mut self, feature: &'a CityJSONFeature) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for FcbWriter<'a>
impl<'a> RefUnwindSafe for FcbWriter<'a>
impl<'a> Send for FcbWriter<'a>
impl<'a> Sync for FcbWriter<'a>
impl<'a> Unpin for FcbWriter<'a>
impl<'a> UnsafeUnpin for FcbWriter<'a>
impl<'a> UnwindSafe for FcbWriter<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more