pub fn read_into(model: &mut Model, text: &str) -> OgeomResult<Absorbed>Expand description
Read a document’s contents into an existing model.
Same grammar, same VERSION: this reads exactly what read reads, it
just lands the result in a model that already has things in it, which is
what lets a serialized tool body meet a live one in a boolean. The heavy
lifting is Model::absorb: every handle shifts past what the model
already holds, identities land under new ids, and the returned
Absorbed says where, so references recorded against the source
document still resolve.
A document authored at another unit scale is refused, not rescaled.
§Errors
As read, plus the refusals of Model::absorb.