Struct everscale_types::cell::HashBytes
source · #[repr(transparent)]pub struct HashBytes(pub [u8; 32]);Expand description
Type alias for a cell hash.
Tuple Fields§
§0: [u8; 32]Implementations§
source§impl HashBytes
impl HashBytes
sourcepub fn from_slice(slice: &[u8]) -> Self
pub fn from_slice(slice: &[u8]) -> Self
sourcepub const fn wrap(value: &[u8; 32]) -> &Self
pub const fn wrap(value: &[u8; 32]) -> &Self
Wraps a reference to an internal array into a newtype reference.
sourcepub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns a mutable slice containing the entire array.
sourcepub fn as_mut_array(&mut self) -> &mut [u8; 32]
pub fn as_mut_array(&mut self) -> &mut [u8; 32]
Returns a mutable internal array.
Trait Implementations§
source§impl From<GenericArray<u8, <CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>> as OutputSizeUser>::OutputSize>> for HashBytes
impl From<GenericArray<u8, <CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>> as OutputSizeUser>::OutputSize>> for HashBytes
source§impl Ord for HashBytes
impl Ord for HashBytes
source§impl PartialEq<[u8]> for HashBytes
impl PartialEq<[u8]> for HashBytes
source§impl PartialEq<[u8; 32]> for HashBytes
impl PartialEq<[u8; 32]> for HashBytes
source§impl PartialEq<HashBytes> for [u8]
impl PartialEq<HashBytes> for [u8]
source§impl PartialEq<HashBytes> for [u8; 32]
impl PartialEq<HashBytes> for [u8; 32]
source§impl PartialEq<HashBytes> for HashBytes
impl PartialEq<HashBytes> for HashBytes
source§impl PartialOrd<HashBytes> for HashBytes
impl PartialOrd<HashBytes> for HashBytes
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Store for HashBytes
impl Store for HashBytes
source§fn store_into(
&self,
b: &mut CellBuilder,
_: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, b: &mut CellBuilder, _: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Copy for HashBytes
impl Eq for HashBytes
impl StructuralEq for HashBytes
impl StructuralPartialEq for HashBytes
Auto Trait Implementations§
impl RefUnwindSafe for HashBytes
impl Send for HashBytes
impl Sync for HashBytes
impl Unpin for HashBytes
impl UnwindSafe for HashBytes
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