Skip to main content

splice_text_diffed

Function splice_text_diffed 

pub fn splice_text_diffed(
    doc: &mut AutoCommit,
    text_id: &ExId,
    new: &str,
) -> TextEdit
Expand description

Prefer put_text_diffed when you have a parent object + key and want the Text created on first use.

ยงPanics

Panics if text_id does not resolve to a Text object in the document.