Skip to main content

splice_entries

Function splice_entries 

Source
pub fn splice_entries(
    entries: &[Map<String, Value>],
    insert_after_seq: i64,
    new_entries: &[Map<String, Value>],
    section_override: Option<&str>,
    scene_override: Option<&str>,
) -> Result<Vec<Map<String, Value>>, String>
Expand description

Insert new_entries after insert_after_seq, then renumber the body.

Preamble entries (seq <= 0) are never renumbered. New entries inherit section and scene from the insertion point unless overridden.