Skip to main content

snapshot

Function snapshot 

Source
pub fn snapshot(spec: &LoadSpec<'_>) -> Result<Snapshot, Error>
Expand description

Resolves the section without deserializing it.

Two snapshots can be compared with Snapshot::diff, which is how a reload reports which keys changed rather than only that something did.

§Errors

If a source cannot be read or parsed — the same failures as load.