Struct jujutsu_lib::backend::Tree
source · [−]pub struct Tree { /* private fields */ }Implementations
sourceimpl Tree
impl Tree
pub fn is_empty(&self) -> bool
pub fn entries(&self) -> TreeEntriesNonRecursiveIterator<'_>ⓘNotable traits for TreeEntriesNonRecursiveIterator<'a>impl<'a> Iterator for TreeEntriesNonRecursiveIterator<'a> type Item = TreeEntry<'a>;
pub fn set(&mut self, name: RepoPathComponent, value: TreeValue)
pub fn remove(&mut self, name: &RepoPathComponent)
pub fn entry(&self, name: &RepoPathComponent) -> Option<TreeEntry<'_>>
pub fn value(&self, name: &RepoPathComponent) -> Option<&TreeValue>
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