Skip to main content

seed_text

Function seed_text 

pub fn seed_text(doc: &mut AutoCommit, object: &ExId, seed: &str) -> Option<()>
Expand description

Seed a newly constructed Text once for this exact initial byte sequence. Repeated imports of the same file/base produce the same change instead of inserting the base twice. Call only when the buffer did not exist; subsequent updates belong to the record’s ordinary private writer.