pub enum OriginKind {
Local {
file: String,
},
Unwrapped,
Namespaced,
}Expand description
How a module came to be visible in the package being compiled, which is the whole of what a collision diagnostic has to say about each of the two modules claiming one name.
Variants§
Local
Declared by the package being compiled, in the file named — src/Model.zel.
The file is part of the answer because a package’s two source roots share one set of module names, so naming the package is not enough to say which of two local modules a collision is about.
Unwrapped
A public module of a dependency seen unwrapped, so it is named by its own name.
Namespaced
A public module of a wrapped dependency, named through that package’s namespace.
Trait Implementations§
Source§impl Clone for OriginKind
impl Clone for OriginKind
Source§fn clone(&self) -> OriginKind
fn clone(&self) -> OriginKind
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 OriginKind
impl Debug for OriginKind
impl Eq for OriginKind
Source§impl PartialEq for OriginKind
impl PartialEq for OriginKind
impl StructuralPartialEq for OriginKind
Auto Trait Implementations§
impl Freeze for OriginKind
impl RefUnwindSafe for OriginKind
impl Send for OriginKind
impl Sync for OriginKind
impl Unpin for OriginKind
impl UnsafeUnpin for OriginKind
impl UnwindSafe for OriginKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more