pub trait MathArchive {
// Required methods
fn uri(&self) -> &ArchiveUri;
fn path(&self) -> &Path;
fn is_meta(&self) -> bool;
fn load_module(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> Result<Module, BackendError>;
fn load_module_async<A: AsyncEngine>(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> impl Future<Output = Result<Module, BackendError>> + 'static + use<Self, A>
where Self: Sized;
// Provided method
fn id(&self) -> &ArchiveId { ... }
}Required Methods§
fn uri(&self) -> &ArchiveUri
fn path(&self) -> &Path
fn is_meta(&self) -> bool
Sourcefn load_module(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> Result<Module, BackendError>
fn load_module( &self, path: Option<&UriPath>, name: &UriName, ) -> Result<Module, BackendError>
§Errors
Sourcefn load_module_async<A: AsyncEngine>(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> impl Future<Output = Result<Module, BackendError>> + 'static + use<Self, A>where
Self: Sized,
fn load_module_async<A: AsyncEngine>(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> impl Future<Output = Result<Module, BackendError>> + 'static + use<Self, A>where
Self: Sized,
§Errors
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".