pub enum ImportTarget {
Module(usize),
Reported,
}Expand description
What an import names, by its first segment (spec 3.3a §4.5).
Variants§
Module(usize)
The module at this index of resolve_program’s modules.
Reported
The driver has already reported this import (E0004, or a
dev-dependency imported from src/): bind nothing, and say nothing
more.
Trait Implementations§
Source§impl Clone for ImportTarget
impl Clone for ImportTarget
impl Copy for ImportTarget
Source§impl Debug for ImportTarget
impl Debug for ImportTarget
impl Eq for ImportTarget
Source§impl PartialEq for ImportTarget
impl PartialEq for ImportTarget
impl StructuralPartialEq for ImportTarget
Auto Trait Implementations§
impl Freeze for ImportTarget
impl RefUnwindSafe for ImportTarget
impl Send for ImportTarget
impl Sync for ImportTarget
impl Unpin for ImportTarget
impl UnsafeUnpin for ImportTarget
impl UnwindSafe for ImportTarget
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.