pub enum ProvenanceBindings {
Imports,
ImportsAndRequires,
ReleasedModule,
}Expand description
The module bindings that can prove an import provenance.
Variants§
Imports
ES import declarations only.
ImportsAndRequires
ES import declarations and CommonJS require() calls.
ModuleInfo::release_resolution_payload drains require_calls, so a
caller that reads a released module sees ES imports only.
ReleasedModule
Self::ImportsAndRequires, and also a leading identifier that no ES
import and no export of the module binds.
A released module keeps no require() facts, so such an identifier
can be a CommonJS binding of the source. A caller that must not miss
a sink, such as the side-effect prune of the mutation plan, uses this
mode. An identifier that an ES import of another source or a local
export binds does not satisfy the row.
Trait Implementations§
Source§impl Clone for ProvenanceBindings
impl Clone for ProvenanceBindings
impl Copy for ProvenanceBindings
Source§impl Debug for ProvenanceBindings
impl Debug for ProvenanceBindings
impl Eq for ProvenanceBindings
Source§impl PartialEq for ProvenanceBindings
impl PartialEq for ProvenanceBindings
impl StructuralPartialEq for ProvenanceBindings
Auto Trait Implementations§
impl Freeze for ProvenanceBindings
impl RefUnwindSafe for ProvenanceBindings
impl Send for ProvenanceBindings
impl Sync for ProvenanceBindings
impl Unpin for ProvenanceBindings
impl UnsafeUnpin for ProvenanceBindings
impl UnwindSafe for ProvenanceBindings
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.