Skip to main content

Dataset

Trait Dataset 

Source
pub trait Dataset {
    // Required methods
    fn layer_names(&self) -> Vec<String>;
    fn open_layer<'a>(&'a self, name: &str) -> Result<Box<dyn Layer + 'a>>;
}
Expand description

A container of one or more named layers — the polymorphic equivalent of geonative_filegdb::Geodatabase.

Required Methods§

Source

fn layer_names(&self) -> Vec<String>

Names of the user-facing layers in deterministic order.

Source

fn open_layer<'a>(&'a self, name: &str) -> Result<Box<dyn Layer + 'a>>

Open the layer with the given name. Returns Error::LayerNotFound if the name isn’t present.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<L: Layer + 'static> Dataset for SingleLayerDataset<L>