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§
Sourcefn layer_names(&self) -> Vec<String>
fn layer_names(&self) -> Vec<String>
Names of the user-facing layers in deterministic order.
Sourcefn open_layer<'a>(&'a self, name: &str) -> Result<Box<dyn Layer + 'a>>
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".