pub struct Edges { /* private fields */ }Expand description
A container for edge envelopes on a document.
Edges stores pre-constructed edge envelopes keyed by their digest,
mirroring the Attachments container but for edges as defined in
BCR-2026-003.
Implementations§
Source§impl Edges
impl Edges
Sourcepub fn iter(&self) -> impl Iterator<Item = (&Digest, &Envelope)>
pub fn iter(&self) -> impl Iterator<Item = (&Digest, &Envelope)>
Returns an iterator over all edge envelopes.
Sourcepub fn add_to_envelope(&self, envelope: Envelope) -> Envelope
pub fn add_to_envelope(&self, envelope: Envelope) -> Envelope
Adds all edges as 'edge' assertion envelopes to the given envelope.
Sourcepub fn try_from_envelope(envelope: &Envelope) -> Result<Edges>
pub fn try_from_envelope(envelope: &Envelope) -> Result<Edges>
Extracts edges from an envelope’s 'edge' assertions.
Trait Implementations§
impl Eq for Edges
impl StructuralPartialEq for Edges
Auto Trait Implementations§
impl Freeze for Edges
impl RefUnwindSafe for Edges
impl !Send for Edges
impl !Sync for Edges
impl Unpin for Edges
impl UnwindSafe for Edges
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more