pub enum ModuleReference {
CurrentPackage {
module: String,
},
Dependency {
dependency: String,
module: String,
},
}
Expand description
A reference to a module which may or may not come from another package.
§Serialization
A ModuleReference
is serialized via its String
representation.
Variants§
CurrentPackage
A module in the current package.
Dependency
A module that will be provided by a dependency, in dependency:module
form.
Trait Implementations§
Source§impl Clone for ModuleReference
impl Clone for ModuleReference
Source§fn clone(&self) -> ModuleReference
fn clone(&self) -> ModuleReference
Returns a copy of the value. Read more
1.0.0 · 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 ModuleReference
impl Debug for ModuleReference
Source§impl<'de> Deserialize<'de> for ModuleReference
impl<'de> Deserialize<'de> for ModuleReference
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ModuleReference
impl Display for ModuleReference
Source§impl FromStr for ModuleReference
impl FromStr for ModuleReference
Source§impl PartialEq for ModuleReference
impl PartialEq for ModuleReference
Source§impl Serialize for ModuleReference
impl Serialize for ModuleReference
impl StructuralPartialEq for ModuleReference
Auto Trait Implementations§
impl Freeze for ModuleReference
impl RefUnwindSafe for ModuleReference
impl Send for ModuleReference
impl Sync for ModuleReference
impl Unpin for ModuleReference
impl UnwindSafe for ModuleReference
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)