pub struct PolicyDigest(/* private fields */);Expand description
The digest identity of one deterministic policy configuration.
Implementations§
Source§impl PolicyDigest
impl PolicyDigest
Source§impl PolicyDigest
impl PolicyDigest
Sourcepub fn digest_canonical(canonical_policy: &[u8]) -> Self
pub fn digest_canonical(canonical_policy: &[u8]) -> Self
Hash a canonical deterministic-policy encoding with a VSH domain separator.
Trait Implementations§
Source§impl Clone for PolicyDigest
impl Clone for PolicyDigest
Source§fn clone(&self) -> PolicyDigest
fn clone(&self) -> PolicyDigest
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 PolicyDigest
Source§impl Debug for PolicyDigest
impl Debug for PolicyDigest
Source§impl Display for PolicyDigest
impl Display for PolicyDigest
impl Eq for PolicyDigest
Source§impl FromStr for PolicyDigest
impl FromStr for PolicyDigest
Source§impl Hash for PolicyDigest
impl Hash for PolicyDigest
Source§impl Ord for PolicyDigest
impl Ord for PolicyDigest
Source§fn cmp(&self, other: &PolicyDigest) -> Ordering
fn cmp(&self, other: &PolicyDigest) -> 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 PolicyDigest
impl PartialEq for PolicyDigest
Source§impl PartialOrd for PolicyDigest
impl PartialOrd for PolicyDigest
impl StructuralPartialEq for PolicyDigest
Auto Trait Implementations§
impl Freeze for PolicyDigest
impl RefUnwindSafe for PolicyDigest
impl Send for PolicyDigest
impl Sync for PolicyDigest
impl Unpin for PolicyDigest
impl UnsafeUnpin for PolicyDigest
impl UnwindSafe for PolicyDigest
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