Adds a pre-constructed edge envelope.
The edge envelope to add
Retrieves an edge by its digest.
The digest of the edge to retrieve
The edge envelope if found, or undefined
Removes an edge by its digest.
The digest of the edge to remove
The removed edge envelope if found, or undefined
Removes all edges from the container.
Returns whether the container has no edges.
Returns the number of edges in the container.
Returns an iterator over all edge envelopes.
Adds all edges as 'edge' assertion envelopes to the given envelope.
The envelope to add edges to
A new envelope with all edges added as assertions
StaticfromExtracts edges from an envelope's 'edge' assertions.
Equivalent to Rust's Edges::try_from_envelope().
The envelope to extract edges from
A new Edges container with the envelope's edges
A container for edge envelopes on a document.
Edgesstores pre-constructed edge envelopes keyed by their digest, mirroring theAttachmentscontainer but for edges as defined in BCR-2026-003.Equivalent to Rust's
Edgesstruct insrc/extension/edge/edges.rs.