pub struct Defn { /* private fields */ }
Expand description
Layer definition
Defines the fields available for features in a layer.
Implementations§
source§impl Defn
impl Defn
sourcepub unsafe fn from_c_defn(c_defn: OGRFeatureDefnH) -> Defn
pub unsafe fn from_c_defn(c_defn: OGRFeatureDefnH) -> Defn
sourcepub unsafe fn c_defn(&self) -> OGRFeatureDefnH
pub unsafe fn c_defn(&self) -> OGRFeatureDefnH
sourcepub fn fields(&self) -> FieldIterator<'_> ⓘ
pub fn fields(&self) -> FieldIterator<'_> ⓘ
Iterate over the field schema of this layer.
sourcepub fn geom_fields(&self) -> GeomFieldIterator<'_>
pub fn geom_fields(&self) -> GeomFieldIterator<'_>
Iterate over the geometry field schema of this layer.
pub fn from_layer<L: LayerAccess>(lyr: &L) -> Defn
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Defn
impl RefUnwindSafe for Defn
impl !Send for Defn
impl !Sync for Defn
impl Unpin for Defn
impl UnwindSafe for Defn
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