pub struct TreeWrite {
pub tree: Tree,
pub parent: Option<ContentHash>,
}Expand description
A newly-authored tree plus its immediate parent, when capture already knows that relationship. Stores may use the hint for bounded HDC1 encoding; it never changes the tree’s semantic content hash.
Fields§
§tree: Tree§parent: Option<ContentHash>Implementations§
Source§impl TreeWrite
impl TreeWrite
pub fn anchor(tree: Tree) -> Self
pub fn descendant(tree: Tree, parent: ContentHash) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeWrite
impl RefUnwindSafe for TreeWrite
impl Send for TreeWrite
impl Sync for TreeWrite
impl Unpin for TreeWrite
impl UnsafeUnpin for TreeWrite
impl UnwindSafe for TreeWrite
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