[][src]Function places::storage::bookmarks::resolve_pos_for_insert

fn resolve_pos_for_insert(
    db: &PlacesDb,
    pos: BookmarkPosition,
    parent: &RawBookmark
) -> Result<u32>

Helpers to deal with managing the position correctly. Updates the position of existing items so that the insertion of a child in the position specified leaves all siblings with the correct position. Returns the index the item should be inserted at.