pub struct Depfile<'a> { /* private fields */ }
Expand description
Implementations§
Source§impl Depfile<'_>
impl Depfile<'_>
Sourcepub fn binary_search(&self, target: &str) -> Option<&[Cow<'_, str>]>
pub fn binary_search(&self, target: &str) -> Option<&[Cow<'_, str>]>
Binary search for a target and return its dependencies.
self
must be sorted.
The target symbol is compared literally, i.e. the same paths with different separators are considered different.
Sourcepub fn find(&self, target: &str) -> Option<&[Cow<'_, str>]>
pub fn find(&self, target: &str) -> Option<&[Cow<'_, str>]>
Find the target and return its dependencies.
The target symbol is compared literally, i.e. the same paths with different separators are considered different.
Sourcepub fn iter(&self) -> DepfileIter<'_> ⓘ
pub fn iter(&self) -> DepfileIter<'_> ⓘ
Iterate over (target, deps) pairs.
The deps are not recursive, use recurse_deps
for recursive traversal
of dependencies using DFS
Sourcepub fn recurse_deps(&self, target: &str) -> DepfileRecurDeps<'_> ⓘ
pub fn recurse_deps(&self, target: &str) -> DepfileRecurDeps<'_> ⓘ
Recursively iterator over all dependencies of the target.
Each dependency will only be returned once
Trait Implementations§
impl<'a> Eq for Depfile<'a>
impl<'a> StructuralPartialEq for Depfile<'a>
Auto Trait Implementations§
impl<'a> Freeze for Depfile<'a>
impl<'a> RefUnwindSafe for Depfile<'a>
impl<'a> Send for Depfile<'a>
impl<'a> Sync for Depfile<'a>
impl<'a> Unpin for Depfile<'a>
impl<'a> UnwindSafe for Depfile<'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