pub struct MvtFeature {
pub id: Option<u64>,
pub geometry: MvtGeometry,
pub properties: Vec<(String, MvtValue)>,
}Fields§
§id: Option<u64>§geometry: MvtGeometry§properties: Vec<(String, MvtValue)>Implementations§
Source§impl MvtFeature
impl MvtFeature
pub fn new(geometry: MvtGeometry) -> Self
pub fn set_id(&mut self, id: u64)
pub fn add_tag(&mut self, key: impl Into<String>, value: MvtValue)
pub fn add_tag_string( &mut self, key: impl Into<String>, value: impl Into<String>, )
pub fn add_tag_float(&mut self, key: impl Into<String>, value: f32)
pub fn add_tag_double(&mut self, key: impl Into<String>, value: f64)
pub fn add_tag_int(&mut self, key: impl Into<String>, value: i64)
pub fn add_tag_uint(&mut self, key: impl Into<String>, value: u64)
pub fn add_tag_sint(&mut self, key: impl Into<String>, value: i64)
Sourcepub fn add_tag_auto_int(
&mut self,
key: impl Into<String>,
value: impl Into<i64>,
)
pub fn add_tag_auto_int( &mut self, key: impl Into<String>, value: impl Into<i64>, )
Add an integer tag using the smallest MVT encoding for value.
See MvtValue::auto_int for how the encoding is chosen.
pub fn add_tag_bool(&mut self, key: impl Into<String>, value: bool)
Trait Implementations§
Source§impl Clone for MvtFeature
impl Clone for MvtFeature
Source§fn clone(&self) -> MvtFeature
fn clone(&self) -> MvtFeature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MvtFeature
impl Debug for MvtFeature
Source§impl PartialEq for MvtFeature
impl PartialEq for MvtFeature
impl StructuralPartialEq for MvtFeature
Auto Trait Implementations§
impl Freeze for MvtFeature
impl RefUnwindSafe for MvtFeature
impl Send for MvtFeature
impl Sync for MvtFeature
impl Unpin for MvtFeature
impl UnsafeUnpin for MvtFeature
impl UnwindSafe for MvtFeature
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