pub struct ProvedCargo { /* private fields */ }Expand description
One terminal’s proved cargo and parentage.
Implementations§
Source§impl ProvedCargo
impl ProvedCargo
Sourcepub fn carried<K: Kind>(
expansion: &Expansion<K>,
axis: CargoAxis,
destination: Destination,
cargo: DeferredCargo,
) -> Result<Self, AssemblyError>
pub fn carried<K: Kind>( expansion: &Expansion<K>, axis: CargoAxis, destination: Destination, cargo: DeferredCargo, ) -> Result<Self, AssemblyError>
Promotes one terminal’s own opaque test or benchmark delivery into proved cargo.
§Errors
Returns AssemblyIssue::DeclaredAxisRequiresStampedCargo for the declared axis, the established destination issue where the opaque axis and destination disagree, or the delivery-ownership issue where the terminal did not prove the supplied cargo.
Source§impl ProvedCargo
impl ProvedCargo
Sourcepub const fn source(&self) -> ClosedExpansionId
pub const fn source(&self) -> ClosedExpansionId
Reads the proving terminal.
Sourcepub const fn root(&self) -> Identity<CapturedDeclaration>
pub const fn root(&self) -> Identity<CapturedDeclaration>
Reads the terminal’s declaration.
Sourcepub const fn destination(&self) -> Destination
pub const fn destination(&self) -> Destination
Reads the proved destination.
Sourcepub const fn digest(&self) -> Identity<OutputBytes>
pub const fn digest(&self) -> Identity<OutputBytes>
Reads the delivered-byte digest.
Sourcepub const fn cargo(&self) -> &DeferredCargo
pub const fn cargo(&self) -> &DeferredCargo
Reads the proved cargo.
Trait Implementations§
Source§impl Clone for ProvedCargo
impl Clone for ProvedCargo
Source§fn clone(&self) -> ProvedCargo
fn clone(&self) -> ProvedCargo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProvedCargo
impl Debug for ProvedCargo
impl Eq for ProvedCargo
Source§impl Hash for ProvedCargo
impl Hash for ProvedCargo
Source§impl PartialEq for ProvedCargo
impl PartialEq for ProvedCargo
impl StructuralPartialEq for ProvedCargo
Auto Trait Implementations§
impl Freeze for ProvedCargo
impl RefUnwindSafe for ProvedCargo
impl Send for ProvedCargo
impl Sync for ProvedCargo
impl Unpin for ProvedCargo
impl UnsafeUnpin for ProvedCargo
impl UnwindSafe for ProvedCargo
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