pub struct DigestContract {
pub anchored_to: Identity<GeneratedUnit>,
}Expand description
What the eventual digest of one member must satisfy, stated before a byte of it exists.
A plan holds no rendered bytes and therefore no digest of them: it names the member the digest must be anchored to, and closure recomputes the digest over the rendered bytes at Role::OutputBytes and compares.
A digest anchored anywhere else belongs to a different member.
Fields§
§anchored_to: Identity<GeneratedUnit>The member identity the digest must be anchored to.
Implementations§
Source§impl DigestContract
impl DigestContract
Sourcepub fn encode_into(&self, into: &mut Vec<u8>)
pub fn encode_into(&self, into: &mut Vec<u8>)
Appends this contract’s canonical bytes: the member identity the digest must be anchored to.
Trait Implementations§
Source§impl Clone for DigestContract
impl Clone for DigestContract
Source§fn clone(&self) -> DigestContract
fn clone(&self) -> DigestContract
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 moreimpl Copy for DigestContract
Source§impl Debug for DigestContract
impl Debug for DigestContract
impl Eq for DigestContract
Source§impl Hash for DigestContract
impl Hash for DigestContract
Source§impl PartialEq for DigestContract
impl PartialEq for DigestContract
impl StructuralPartialEq for DigestContract
Auto Trait Implementations§
impl Freeze for DigestContract
impl RefUnwindSafe for DigestContract
impl Send for DigestContract
impl Sync for DigestContract
impl Unpin for DigestContract
impl UnsafeUnpin for DigestContract
impl UnwindSafe for DigestContract
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