pub struct InsertPosition {
pub parent_node_id: usize,
pub child_position: u32,
pub descendant_count: u32,
}Expand description
The position where content is inserted.
Fields§
§parent_node_id: usizeThe index of the parent node.
child_position: u32Child node osition where to insert in the parent. Existing nodes at this position and after are shifted to the right.
descendant_count: u32The number of intervening descendant nodes the parent node has This is used to help sort deletes before any inserts into that parent happen
Trait Implementations§
Source§impl Debug for InsertPosition
impl Debug for InsertPosition
Source§impl PartialEq for InsertPosition
impl PartialEq for InsertPosition
impl Eq for InsertPosition
impl StructuralPartialEq for InsertPosition
Auto Trait Implementations§
impl Freeze for InsertPosition
impl RefUnwindSafe for InsertPosition
impl Send for InsertPosition
impl Sync for InsertPosition
impl Unpin for InsertPosition
impl UnwindSafe for InsertPosition
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