pub struct CarriedTokens { /* private fields */ }Expand description
The tokens one delivery carries, together with the digest of exactly those bytes.
The two arrive together because the digest is taken over the tree at the moment the tree is built, inside the proof.
§Construction
There is no public road to one: every value of this type is built by the partitioning inside Closure::proved, which is why holding one means the bytes it carries were proved.
Implementations§
Source§impl CarriedTokens
impl CarriedTokens
Sourcepub const fn tree(&self) -> &GeneratedTree
pub const fn tree(&self) -> &GeneratedTree
The tokens themselves.
Sourcepub const fn digest(&self) -> Identity<OutputBytes>
pub const fn digest(&self) -> Identity<OutputBytes>
The digest of exactly these bytes, as the proving closure’s identity commits to it.
Trait Implementations§
Source§impl Clone for CarriedTokens
impl Clone for CarriedTokens
Source§fn clone(&self) -> CarriedTokens
fn clone(&self) -> CarriedTokens
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 CarriedTokens
impl Debug for CarriedTokens
impl Eq for CarriedTokens
Source§impl Hash for CarriedTokens
impl Hash for CarriedTokens
Source§impl PartialEq for CarriedTokens
impl PartialEq for CarriedTokens
impl StructuralPartialEq for CarriedTokens
Auto Trait Implementations§
impl Freeze for CarriedTokens
impl RefUnwindSafe for CarriedTokens
impl Send for CarriedTokens
impl Sync for CarriedTokens
impl Unpin for CarriedTokens
impl UnsafeUnpin for CarriedTokens
impl UnwindSafe for CarriedTokens
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