pub struct TargetTreeIndex { /* private fields */ }Implementations§
Source§impl TargetTreeIndex
impl TargetTreeIndex
pub fn from_parts( target_repo: PathBuf, target_ref: GitRef, resolved_commit: CommitSha, present_paths: BTreeSet<PathBuf>, ) -> Self
pub fn target_repo(&self) -> &Path
pub fn target_ref(&self) -> &GitRef
pub fn resolved_commit(&self) -> &CommitSha
pub fn contains_path(&self, p: &Path) -> bool
pub fn present_paths(&self) -> &BTreeSet<PathBuf>
Sourcepub fn module_erl_path(&self, module: &ModuleName) -> Option<&Path>
pub fn module_erl_path(&self, module: &ModuleName) -> Option<&Path>
The .erl file that defines module, by basename, or None
when the tree has no such file or two files share the basename.
Trait Implementations§
Source§impl Clone for TargetTreeIndex
impl Clone for TargetTreeIndex
Auto Trait Implementations§
impl Forget for TargetTreeIndex
impl Freeze for TargetTreeIndex
impl Move for TargetTreeIndex
impl RefUnwindSafe for TargetTreeIndex
impl Send for TargetTreeIndex
impl Sync for TargetTreeIndex
impl Unpin for TargetTreeIndex
impl UnsafeUnpin for TargetTreeIndex
impl UnwindSafe for TargetTreeIndex
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