pub enum ModuleTarget {
Local(SourceId),
External(Arc<str>),
}Expand description
The canonical identity of a resolved module dependency.
Variants§
Implementations§
Source§impl ModuleTarget
impl ModuleTarget
pub const fn local_source_id(&self) -> Option<SourceId>
pub fn external_specifier(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ModuleTarget
impl Clone for ModuleTarget
Source§fn clone(&self) -> ModuleTarget
fn clone(&self) -> ModuleTarget
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 ModuleTarget
impl Debug for ModuleTarget
impl Eq for ModuleTarget
Source§impl Hash for ModuleTarget
impl Hash for ModuleTarget
Source§impl Ord for ModuleTarget
impl Ord for ModuleTarget
Source§fn cmp(&self, other: &ModuleTarget) -> Ordering
fn cmp(&self, other: &ModuleTarget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModuleTarget
impl PartialEq for ModuleTarget
Source§impl PartialOrd for ModuleTarget
impl PartialOrd for ModuleTarget
impl StructuralPartialEq for ModuleTarget
Auto Trait Implementations§
impl Freeze for ModuleTarget
impl RefUnwindSafe for ModuleTarget
impl Send for ModuleTarget
impl Sync for ModuleTarget
impl Unpin for ModuleTarget
impl UnsafeUnpin for ModuleTarget
impl UnwindSafe for ModuleTarget
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