pub struct ProgramDigest(/* private fields */);Expand description
The digest identity of the exact untrusted program source.
Implementations§
Source§impl ProgramDigest
impl ProgramDigest
Source§impl ProgramDigest
impl ProgramDigest
Sourcepub fn digest_source(source: &str) -> Self
pub fn digest_source(source: &str) -> Self
Hash exact program UTF-8 bytes with a VSH domain separator.
Trait Implementations§
Source§impl Clone for ProgramDigest
impl Clone for ProgramDigest
Source§fn clone(&self) -> ProgramDigest
fn clone(&self) -> ProgramDigest
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 ProgramDigest
Source§impl Debug for ProgramDigest
impl Debug for ProgramDigest
Source§impl Display for ProgramDigest
impl Display for ProgramDigest
impl Eq for ProgramDigest
Source§impl FromStr for ProgramDigest
impl FromStr for ProgramDigest
Source§impl Hash for ProgramDigest
impl Hash for ProgramDigest
Source§impl Ord for ProgramDigest
impl Ord for ProgramDigest
Source§fn cmp(&self, other: &ProgramDigest) -> Ordering
fn cmp(&self, other: &ProgramDigest) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProgramDigest
impl PartialEq for ProgramDigest
Source§impl PartialOrd for ProgramDigest
impl PartialOrd for ProgramDigest
impl StructuralPartialEq for ProgramDigest
Auto Trait Implementations§
impl Freeze for ProgramDigest
impl RefUnwindSafe for ProgramDigest
impl Send for ProgramDigest
impl Sync for ProgramDigest
impl Unpin for ProgramDigest
impl UnsafeUnpin for ProgramDigest
impl UnwindSafe for ProgramDigest
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