pub struct Tree { /* private fields */ }
Implementations§
Source§impl Tree
impl Tree
pub fn new( store: Arc<StoreWrapper>, dir: DirRepoPath, id: TreeId, data: Arc<Tree>, ) -> Self
pub fn null(store: Arc<StoreWrapper>, dir: DirRepoPath) -> Self
pub fn store(&self) -> &Arc<StoreWrapper>
pub fn dir(&self) -> &DirRepoPath
pub fn id(&self) -> &TreeId
pub fn data(&self) -> &Tree
pub fn entries_non_recursive(&self) -> TreeEntriesNonRecursiveIter<'_> ⓘ
pub fn entries(&self) -> TreeEntriesIter ⓘ
pub fn entry<N>(&self, basename: &N) -> Option<TreeEntry<'_>>
pub fn value<N>(&self, basename: &N) -> Option<&TreeValue>
pub fn path_value(&self, path: &RepoPath) -> Option<TreeValue>
pub fn sub_tree(&self, name: &DirRepoPathComponent) -> Option<Tree>
pub fn known_sub_tree(&self, name: &DirRepoPathComponent, id: &TreeId) -> Tree
pub fn diff( &self, other: &Tree, callback: &mut impl FnMut(&FileRepoPath, TreeValueDiff<'_>), )
pub fn diff_summary(&self, other: &Tree) -> DiffSummary
pub fn has_conflict(&self) -> bool
pub fn conflicts(&self) -> Vec<(RepoPath, ConflictId)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tree
impl !RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
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