#[non_exhaustive]pub struct ForeignModulePath<'a> {
pub file: &'a RelPath,
pub reach: &'a Reach,
pub site: &'a PathSite,
pub package: PackageId,
pub owner: Option<PackageId>,
}Expand description
An arrival through a module path attribute at a file that the package of
the arriving target does not own.
The struct is #[non_exhaustive]: adding a field is not a breaking change,
so a pattern names the fields it reads and ends in ...
ⓘ
let raf_source::ForeignModulePath { file, reach, site, package, owner } = found;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: &'a RelPathThe reached file’s path, as the workspace keeps it.
reach: &'a ReachThe arrival, whose target followed the attribute.
site: &'a PathSiteThe attribute of that arrival.
package: PackageIdThe package of the target that followed the attribute.
owner: Option<PackageId>The package whose directory holds the resolved spelling, the deepest
one when directories nest; None when no loaded package holds it.
Trait Implementations§
Source§impl<'a> Clone for ForeignModulePath<'a>
impl<'a> Clone for ForeignModulePath<'a>
impl<'a> Copy for ForeignModulePath<'a>
Source§impl<'a> Debug for ForeignModulePath<'a>
impl<'a> Debug for ForeignModulePath<'a>
impl<'a> Eq for ForeignModulePath<'a>
Source§impl<'a> PartialEq for ForeignModulePath<'a>
impl<'a> PartialEq for ForeignModulePath<'a>
impl<'a> StructuralPartialEq for ForeignModulePath<'a>
Auto Trait Implementations§
impl<'a> Forget for ForeignModulePath<'a>
impl<'a> Freeze for ForeignModulePath<'a>
impl<'a> Move for ForeignModulePath<'a>
impl<'a> RefUnwindSafe for ForeignModulePath<'a>
impl<'a> Send for ForeignModulePath<'a>
impl<'a> Sync for ForeignModulePath<'a>
impl<'a> Unpin for ForeignModulePath<'a>
impl<'a> UnsafeUnpin for ForeignModulePath<'a>
impl<'a> UnwindSafe for ForeignModulePath<'a>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Whether this borrowed key equals the stored key.
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.impl<T> EvidenceLease for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more