pub enum ModuleSource {
Bundled,
Version(String),
Path(String),
}Expand description
Where one module’s library comes from. A bare string value is shorthand
for ModuleSource::Version.
Variants§
Bundled
Ships with the toolchain, beside the running engine.
Version(String)
A version requirement on a registry package, resolved by lpm before
the app builds; the runtime never resolves or fetches one, it only
loads a module already on disk.
Path(String)
A built library on disk, relative to the app directory unless
absolute. Without an extension, the platform spellings are probed
(lib<m>.so, lib<m>.dylib, <m>.dll, plus underscored variants
for a hyphenated name).
Trait Implementations§
Source§impl Clone for ModuleSource
impl Clone for ModuleSource
Source§fn clone(&self) -> ModuleSource
fn clone(&self) -> ModuleSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleSource
impl Debug for ModuleSource
Source§impl PartialEq for ModuleSource
impl PartialEq for ModuleSource
Source§fn eq(&self, other: &ModuleSource) -> bool
fn eq(&self, other: &ModuleSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleSource
Auto Trait Implementations§
impl Freeze for ModuleSource
impl RefUnwindSafe for ModuleSource
impl Send for ModuleSource
impl Sync for ModuleSource
impl Unpin for ModuleSource
impl UnsafeUnpin for ModuleSource
impl UnwindSafe for ModuleSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.