MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / export_view_snapshot

Method export_view_snapshot

atomic-core/src/pristine/slice.rs:496–506  ·  view source on GitHub ↗

The view's snapshot: its own state, and every change it can see.

(&self, view: &ViewState, visible: Vec<u64>)

Source from the content-addressed store, hash-verified

494
495 /// The view's snapshot: its own state, and every change it can see.
496 pub fn export_view_snapshot(&self, view: &ViewState, visible: Vec<u64>) -> ViewSnapshotRows {
497 ViewSnapshotRows {
498 id: view.id,
499 name: view.name.clone(),
500 state: view.state,
501 change_count: view.change_count,
502 kind: view.kind,
503 parent: view.parent,
504 visible,
505 }
506 }
507}
508
509impl WriteTxn<'_> {

Callers 1

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected