pub struct MvtFeatureBuilder { /* private fields */ }Implementations§
Source§impl MvtFeatureBuilder
impl MvtFeatureBuilder
pub fn id(&mut self, id: Option<u64>) -> &mut Self
pub fn tag( &mut self, key: impl AsRef<str>, value: impl Into<MvtValue>, ) -> MvtResult<&mut Self>
pub fn tag_string( &mut self, key: impl AsRef<str>, value: impl Into<String>, ) -> MvtResult<&mut Self>
pub fn tag_float( &mut self, key: impl AsRef<str>, value: f32, ) -> MvtResult<&mut Self>
pub fn tag_double( &mut self, key: impl AsRef<str>, value: f64, ) -> MvtResult<&mut Self>
pub fn tag_int( &mut self, key: impl AsRef<str>, value: i64, ) -> MvtResult<&mut Self>
pub fn tag_uint( &mut self, key: impl AsRef<str>, value: u64, ) -> MvtResult<&mut Self>
pub fn tag_sint( &mut self, key: impl AsRef<str>, value: i64, ) -> MvtResult<&mut Self>
Sourcepub fn tag_auto_int(
&mut self,
key: impl AsRef<str>,
value: impl Into<i64>,
) -> MvtResult<&mut Self>
pub fn tag_auto_int( &mut self, key: impl AsRef<str>, value: impl Into<i64>, ) -> MvtResult<&mut Self>
Add an integer tag using the smallest MVT encoding for value.
See MvtValue::auto_int for how the encoding is chosen.
pub fn tag_bool( &mut self, key: impl AsRef<str>, value: bool, ) -> MvtResult<&mut Self>
pub fn end(self) -> MvtLayerBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MvtFeatureBuilder
impl RefUnwindSafe for MvtFeatureBuilder
impl Send for MvtFeatureBuilder
impl Sync for MvtFeatureBuilder
impl Unpin for MvtFeatureBuilder
impl UnsafeUnpin for MvtFeatureBuilder
impl UnwindSafe for MvtFeatureBuilder
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