pub struct Tree { /* private fields */ }
Implementations§
source§impl Tree
impl Tree
pub fn is_empty(&self) -> bool
pub fn names(&self) -> impl Iterator<Item = &RepoPathComponent>
pub fn entries(&self) -> TreeEntriesNonRecursiveIterator<'_> ⓘ
pub fn set(&mut self, name: RepoPathComponent, value: TreeValue)
pub fn remove(&mut self, name: &RepoPathComponent)
pub fn set_or_remove( &mut self, name: &RepoPathComponent, value: Option<TreeValue> )
pub fn entry(&self, name: &RepoPathComponent) -> Option<TreeEntry<'_>>
pub fn value(&self, name: &RepoPathComponent) -> Option<&TreeValue>
Trait Implementations§
source§impl ContentHash for Tree
impl ContentHash for Tree
source§impl PartialEq for Tree
impl PartialEq for Tree
impl Eq for Tree
impl StructuralEq for Tree
impl StructuralPartialEq 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