Struct jujutsu_lib::tree::Tree
source · [−]pub struct Tree { /* private fields */ }Implementations
sourceimpl 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<'_>ⓘNotable traits for TreeEntriesNonRecursiveIterator<'a>impl<'a> Iterator for TreeEntriesNonRecursiveIterator<'a> type Item = TreeEntry<'a>;
pub fn entries(&self) -> TreeEntriesIterator<'static>ⓘNotable traits for TreeEntriesIterator<'_>impl Iterator for TreeEntriesIterator<'_> type Item = (RepoPath, TreeValue);
pub fn entries_matching<'matcher>(
&self,
matcher: &'matcher dyn Matcher
) -> TreeEntriesIterator<'matcher>ⓘNotable traits for TreeEntriesIterator<'_>impl Iterator for TreeEntriesIterator<'_> type Item = (RepoPath, TreeValue);
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 known_sub_tree(&self, name: &RepoPathComponent, id: &TreeId) -> Tree
pub fn diff<'matcher>(
&self,
other: &Tree,
matcher: &'matcher dyn Matcher
) -> TreeDiffIterator<'matcher>ⓘNotable traits for TreeDiffIterator<'_>impl Iterator for TreeDiffIterator<'_> type Item = (RepoPath, Diff<TreeValue>);
pub fn diff_summary(&self, other: &Tree, matcher: &dyn Matcher) -> DiffSummary
pub fn has_conflict(&self) -> bool
pub fn conflicts(&self) -> Vec<(RepoPath, ConflictId)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more