pub enum ShadowDeclaration<'a> {
Expected(&'a ExportDecl),
ContradictsDeclaration(&'a ExportDecl),
Undeclared,
}Expand description
What a declared export says about a binary PATH resolves ahead of a shim (clause 5).
Variants§
Expected(&'a ExportDecl)
Inside an export declared to sit BEFORE the shims. Expected, and
verify must not fail on it — a check that fires on the setup the
project deliberately configured is one people switch off.
ContradictsDeclaration(&'a ExportDecl)
Inside an export declared to sit AFTER the shims. The declaration and the actual PATH disagree, which is a real fault with a precise fix — and a far better message than the generic hijack report.
Undeclared
Inside no declared export: the ordinary hijack REQ-SHADOW-001 is for.
Trait Implementations§
Source§impl<'a> Debug for ShadowDeclaration<'a>
impl<'a> Debug for ShadowDeclaration<'a>
impl<'a> Eq for ShadowDeclaration<'a>
Source§impl<'a> PartialEq for ShadowDeclaration<'a>
impl<'a> PartialEq for ShadowDeclaration<'a>
impl<'a> StructuralPartialEq for ShadowDeclaration<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShadowDeclaration<'a>
impl<'a> RefUnwindSafe for ShadowDeclaration<'a>
impl<'a> Send for ShadowDeclaration<'a>
impl<'a> Sync for ShadowDeclaration<'a>
impl<'a> Unpin for ShadowDeclaration<'a>
impl<'a> UnsafeUnpin for ShadowDeclaration<'a>
impl<'a> UnwindSafe for ShadowDeclaration<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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