pub struct FeatureRow {
pub fid: i64,
pub geometry: Option<GpkgGeometry>,
pub fields: HashMap<String, FieldValue>,
}Expand description
A single feature (row) read from a GeoPackage feature table.
Fields§
§fid: i64Feature identifier (primary key value).
geometry: Option<GpkgGeometry>Decoded geometry, or None when the geometry column is NULL.
fields: HashMap<String, FieldValue>Non-geometry attribute values, keyed by column name.
Implementations§
Source§impl FeatureRow
impl FeatureRow
Sourcepub fn get_field(&self, name: &str) -> Option<&FieldValue>
pub fn get_field(&self, name: &str) -> Option<&FieldValue>
Look up a field by name.
Sourcepub fn get_integer(&self, name: &str) -> Option<i64>
pub fn get_integer(&self, name: &str) -> Option<i64>
Convenience: return the integer value of a field, or None.
Trait Implementations§
Source§impl Clone for FeatureRow
impl Clone for FeatureRow
Source§fn clone(&self) -> FeatureRow
fn clone(&self) -> FeatureRow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FeatureRow
impl RefUnwindSafe for FeatureRow
impl Send for FeatureRow
impl Sync for FeatureRow
impl Unpin for FeatureRow
impl UnsafeUnpin for FeatureRow
impl UnwindSafe for FeatureRow
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