struct Open {
left: Option<Cid>,
entries: Vec<(Vec<u8>, Cid, Option<Cid>)>,
}Expand description
A node with its keys written out whole, which is how an edit works on it.
A stored node writes each key as a prefix of the one before it, which is
only meaningful while the entries stay where they are. An edit moves
entries between nodes, so it opens a node into this, works on it, and
closes it back into a Node that computes the prefixes afresh.
Fields§
§left: Option<Cid>The subtree before the first entry.
entries: Vec<(Vec<u8>, Cid, Option<Cid>)>Each entry’s whole key, its value, and the subtree to its right.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Open
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnsafeUnpin for Open
impl UnwindSafe for Open
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