pub struct Tree { /* private fields */ }
Implementations§
source§impl Tree
impl Tree
pub fn new( store: Arc<Store>, dir: RepoPath, id: TreeId, data: Arc<Tree> ) -> Self
pub fn null(store: Arc<Store>, dir: RepoPath) -> Self
pub fn store(&self) -> &Arc<Store>
pub fn dir(&self) -> &RepoPath
pub fn id(&self) -> &TreeId
pub fn data(&self) -> &Tree
pub fn entries_non_recursive(&self) -> TreeEntriesNonRecursiveIterator<'_> ⓘ
pub fn entries(&self) -> TreeEntriesIterator<'static> ⓘ
pub fn entries_matching<'matcher>( &self, matcher: &'matcher dyn Matcher ) -> TreeEntriesIterator<'matcher> ⓘ
pub fn entry(&self, basename: &RepoPathComponent) -> Option<TreeEntry<'_>>
pub fn value(&self, basename: &RepoPathComponent) -> Option<&TreeValue>
pub fn path_value(&self, path: &RepoPath) -> Option<TreeValue>
pub fn sub_tree(&self, name: &RepoPathComponent) -> Option<Tree>
pub fn conflicts_matching( &self, matcher: &dyn Matcher ) -> Vec<(RepoPath, ConflictId)>
pub fn conflicts(&self) -> Vec<(RepoPath, ConflictId)>
pub fn has_conflict(&self) -> bool
Trait Implementations§
source§impl PartialEq<Tree> for Tree
impl PartialEq<Tree> for Tree
impl Eq for Tree
Auto Trait Implementations§
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