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

Method new

atomic-core/src/change/classification.rs:177–180  ·  view source on GitHub ↗

Construct a frontier from an already-canonical root list.

(roots: Vec<Hash>)

Source from the content-addressed store, hash-verified

175impl CausalFrontier {
176 /// Construct a frontier from an already-canonical root list.
177 pub fn new(roots: Vec<Hash>) -> Result<Self, ChangeValidationError> {
178 validate_canonical_hashes("causal_frontier", &roots)?;
179 Ok(Self { roots })
180 }
181
182 /// Construct an empty frontier.
183 pub const fn empty() -> Self {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected