[−][src]Struct mercator_db::DataBase
Collection of datasets and their reference spaces.
Methods
impl DataBase[src]
pub fn new(spaces: Vec<Space>, cores: Vec<Core>) -> Self[src]
Instantiate a DataBase struct.
Parameters
-
spaces: List of reference spaces. -
cores: List of datasets (cores) which will be queried through thisDataBasestruct.
pub fn load(indices: &[&str]) -> Result<Self, String>[src]
pub fn space_keys(&self) -> &Vec<String>[src]
Returns an ordered list of the reference space names registered.
pub fn space(&self, name: &str) -> Result<&Space, String>[src]
Lookup a space within the reference spaces registered.
Parameters
name: The name of the reference space to search for.
pub fn core_keys(&self) -> &Vec<String>[src]
Returns an ordered list of dataset (Core) names registered.
pub fn core(&self, name: &str) -> Result<&Core, String>[src]
Lookup a dataset within the datasets registered.
Parameters
name: The name of the dataset (core) to search for.
Auto Trait Implementations
impl RefUnwindSafe for DataBase
impl Send for DataBase
impl Sync for DataBase
impl Unpin for DataBase
impl UnwindSafe for DataBase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,