pub struct Defn { /* private fields */ }
Expand description
Layer definition
Defines the fields available for features in a layer.
Implementations
sourceimpl Defn
impl Defn
pub unsafe fn _with_c_defn(c_defn: OGRFeatureDefnH) -> Defn
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(lyr: &Layer) -> Defn
Auto Trait Implementations
impl RefUnwindSafe for Defn
impl !Send for Defn
impl !Sync for Defn
impl Unpin for Defn
impl UnwindSafe for Defn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more