[][src]Struct mercator_db::DataBase

pub struct DataBase { /* fields omitted */ }

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 this DataBase struct.

pub fn load(indices: &[&str]) -> Result<Self, String>[src]

Load a list of indices.

Parameters

  • indices: The list of index file names to load.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.