Skip to main content

write_key_changed

Function write_key_changed 

Source
pub fn write_key_changed<T: Model>(
    doc: &mut Doc,
    obj: &ObjId,
    key: &str,
    value: &T,
    before: &T,
    dirty: &Delta,
) -> Result<(), ModelError>
Expand description

Write value under key of the map obj, which holds before: the operations write_key would write, without reading back what did not change. See Model::store_changed.

ยงErrors

Returns ModelError located at key.