pub struct PeerClosureSeeds { /* private fields */ }Expand description
The packages that start a peer-dependency closure although no file imports them: packages that a script runs and packages that a plugin credits.
The unused-dependency check and the dependency trace read the same seeds, so the trace names the same hosts that give peer credit.
Implementations§
Source§impl PeerClosureSeeds
impl PeerClosureSeeds
Seeds that every closure reads.
Sourcepub fn push_manifest_seed(&mut self, manifest: PathBuf, name: String)
pub fn push_manifest_seed(&mut self, manifest: PathBuf, name: String)
Record a seed for the closure of the manifest at manifest, an
absolute package.json path.
Sourcepub fn for_manifest<'a>(
&'a self,
manifest: &Path,
) -> impl Iterator<Item = &'a str>
pub fn for_manifest<'a>( &'a self, manifest: &Path, ) -> impl Iterator<Item = &'a str>
The seeds of the closure for the manifest at manifest: the shared
seeds and the seeds of that manifest.
Trait Implementations§
Source§impl Clone for PeerClosureSeeds
impl Clone for PeerClosureSeeds
Source§impl Debug for PeerClosureSeeds
impl Debug for PeerClosureSeeds
Source§impl Default for PeerClosureSeeds
impl Default for PeerClosureSeeds
impl Eq for PeerClosureSeeds
Source§impl PartialEq for PeerClosureSeeds
impl PartialEq for PeerClosureSeeds
impl StructuralPartialEq for PeerClosureSeeds
Auto Trait Implementations§
impl Freeze for PeerClosureSeeds
impl RefUnwindSafe for PeerClosureSeeds
impl Send for PeerClosureSeeds
impl Sync for PeerClosureSeeds
impl Unpin for PeerClosureSeeds
impl UnsafeUnpin for PeerClosureSeeds
impl UnwindSafe for PeerClosureSeeds
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.