pub trait LibLoader: Send + Sync {
// Required methods
fn can_load(&self, source: &LibSource) -> bool;
fn load(&self, cx: &mut Cx, source: LibSource) -> Result<Box<dyn Lib>>;
// Provided method
fn inspect_manifest(
&self,
_cx: &mut Cx,
_source: &LibSource,
) -> Result<Option<LibManifest>> { ... }
}Expand description
Required Methods§
Provided Methods§
Sourcefn inspect_manifest(
&self,
_cx: &mut Cx,
_source: &LibSource,
) -> Result<Option<LibManifest>>
fn inspect_manifest( &self, _cx: &mut Cx, _source: &LibSource, ) -> Result<Option<LibManifest>>
Inspects a source’s manifest without fully loading it; the default
returns None (not supported).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".