Skip to main content

check_version

Function check_version 

Source
pub fn check_version<R: Resource>(doc: &Doc) -> Result<(), ModelError>
Expand description

Whether doc holds R at a version this build reads: its own or an older one, whose chain of steps stops short and is brought up before it opens. A newer version only adds fields and containers to a type, so this build’s fields are all still there and it reads them as far as it knows the record.

§Errors

Returns why not: the record waits for its steps to be brought up.