pub struct PinScope { /* private fields */ }Expand description
Decides whether a call site or a touched path is tracked for one pin.
Implementations§
Source§impl PinScope
impl PinScope
pub fn from_snapshot( project: ProjectName, snapshot: &Snapshot<Canonical>, extra_modules: impl IntoIterator<Item = ModuleName>, ) -> Self
pub fn contains_module(&self, module: &ModuleName) -> bool
pub fn contains_record(&self, record: &RecordName) -> bool
pub fn modules(&self) -> &BTreeSet<ModuleName>
pub fn records(&self) -> &BTreeSet<RecordName>
Sourcepub fn rewrite_path<'p>(&self, path: &'p Path) -> Option<&'p Path>
pub fn rewrite_path<'p>(&self, path: &'p Path) -> Option<&'p Path>
Rewrites a patch path into a project-local path, or returns
None when the path belongs to a different project.
Trait Implementations§
impl Eq for PinScope
impl StructuralPartialEq for PinScope
Auto Trait Implementations§
impl Freeze for PinScope
impl RefUnwindSafe for PinScope
impl Send for PinScope
impl Sync for PinScope
impl Unpin for PinScope
impl UnsafeUnpin for PinScope
impl UnwindSafe for PinScope
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