pub struct ModuleOrigin {
pub package: PackageName,
pub version: Version,
pub module: Name,
pub kind: OriginKind,
}Expand description
One entry of the map of names a package can import: which package the module belongs to, what that package calls it, and how it came to be visible here.
package and module together are the module’s identity — the pair an
Interface is found by, and module is always the module’s
name within its own package. The spelling this entry is keyed under is a different
thing, and belongs to the importing package alone.
Fields§
§package: PackageName§version: Version§module: Name§kind: OriginKindTrait Implementations§
Source§impl Clone for ModuleOrigin
impl Clone for ModuleOrigin
Source§fn clone(&self) -> ModuleOrigin
fn clone(&self) -> ModuleOrigin
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 moreAuto Trait Implementations§
impl Freeze for ModuleOrigin
impl RefUnwindSafe for ModuleOrigin
impl Send for ModuleOrigin
impl Sync for ModuleOrigin
impl Unpin for ModuleOrigin
impl UnsafeUnpin for ModuleOrigin
impl UnwindSafe for ModuleOrigin
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