pub struct Sha256Hash(pub [u8; 32]);
Expand description
Sha256 hash, represented as bytes.
Tuple Fields§
§0: [u8; 32]
Implementations§
Trait Implementations§
Source§impl Clone for Sha256Hash
impl Clone for Sha256Hash
Source§fn clone(&self) -> Sha256Hash
fn clone(&self) -> Sha256Hash
Returns a copy of the value. Read more
1.0.0 · 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 Sha256Hash
impl Debug for Sha256Hash
Source§impl Display for Sha256Hash
impl Display for Sha256Hash
Source§impl From<Sha256Hash> for PackageHash
impl From<Sha256Hash> for PackageHash
Source§fn from(value: Sha256Hash) -> Self
fn from(value: Sha256Hash) -> Self
Converts to this type from the input type.
Source§impl FromStr for Sha256Hash
impl FromStr for Sha256Hash
Source§impl Hash for Sha256Hash
impl Hash for Sha256Hash
Source§impl JsonSchema for Sha256Hash
impl JsonSchema for Sha256Hash
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for Sha256Hash
impl Ord for Sha256Hash
Source§fn cmp(&self, other: &Sha256Hash) -> Ordering
fn cmp(&self, other: &Sha256Hash) -> Ordering
1.21.0 · 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
Source§impl PartialEq for Sha256Hash
impl PartialEq for Sha256Hash
Source§impl PartialOrd for Sha256Hash
impl PartialOrd for Sha256Hash
impl Eq for Sha256Hash
impl StructuralPartialEq for Sha256Hash
Auto Trait Implementations§
impl Freeze for Sha256Hash
impl RefUnwindSafe for Sha256Hash
impl Send for Sha256Hash
impl Sync for Sha256Hash
impl Unpin for Sha256Hash
impl UnwindSafe for Sha256Hash
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.