pub struct SHA256Hash { /* private fields */ }Expand description
Represents a 256-bit SHA-256 hash.
Implementations§
Source§impl SHA256Hash
impl SHA256Hash
pub fn into_inner(self) -> [u8; 32]
pub const fn new(_inner: [u8; 32]) -> SHA256Hash
Trait Implementations§
Source§impl AsRef<[u8]> for SHA256Hash
impl AsRef<[u8]> for SHA256Hash
Source§impl BitXor for SHA256Hash
impl BitXor for SHA256Hash
Source§type Output = SHA256Hash
type Output = SHA256Hash
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: SHA256Hash) -> <SHA256Hash as BitXor>::Output
fn bitxor(self, rhs: SHA256Hash) -> <SHA256Hash as BitXor>::Output
Performs the
^ operation. Read moreSource§impl BitXor<&SHA256Hash> for SHA256Hash
impl BitXor<&SHA256Hash> for SHA256Hash
Source§type Output = SHA256Hash
type Output = SHA256Hash
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: &SHA256Hash) -> <SHA256Hash as BitXor<&SHA256Hash>>::Output
fn bitxor(self, rhs: &SHA256Hash) -> <SHA256Hash as BitXor<&SHA256Hash>>::Output
Performs the
^ operation. Read moreSource§impl BitXorAssign<&[u8; 32]> for SHA256Hash
impl BitXorAssign<&[u8; 32]> for SHA256Hash
Source§impl Clone for SHA256Hash
impl Clone for SHA256Hash
Source§fn clone(&self) -> SHA256Hash
fn clone(&self) -> SHA256Hash
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 CollectAuthHandles for SHA256Hash
impl CollectAuthHandles for SHA256Hash
fn collect_auth_handles( &self, _out: &mut AuthHandleBuf, ) -> Result<(), FaultString>
Source§impl ConstMaxSize for SHA256Hash
impl ConstMaxSize for SHA256Hash
Source§impl ConstMaxSize for SHA256Hash
impl ConstMaxSize for SHA256Hash
Source§impl ContractTypeRefSpec for SHA256Hash
impl ContractTypeRefSpec for SHA256Hash
Source§const INFO: ContractTypeInfo<'static>
const INFO: ContractTypeInfo<'static>
The type reference. Transitive type definitions are not carried here;
they are retained via the linker-anchor mechanism
(
__THRUPUT_SPEC_ANCHOR_ROOT) and resolved by spec-tool.Source§const SIGNED_PREIMAGE: Option<&'static ContractTypeView<'static>> = _
const SIGNED_PREIMAGE: Option<&'static ContractTypeView<'static>> = _
How this type appears as a signed-token preimage
(
ContractTypeView::SignedToken’s payload): the type itself by
default, or None for a type-erased payload (the SDK’s Opaque
overrides this).impl Copy for SHA256Hash
Source§impl Debug for SHA256Hash
impl Debug for SHA256Hash
Source§impl Default for SHA256Hash
impl Default for SHA256Hash
Source§fn default() -> SHA256Hash
fn default() -> SHA256Hash
Returns the “default value” for a type. Read more
Source§impl Deref for SHA256Hash
impl Deref for SHA256Hash
Source§impl DerefMut for SHA256Hash
impl DerefMut for SHA256Hash
impl EncodesAs<SHA256Hash> for SHA256Hash
impl Eq for SHA256Hash
Source§impl From<SHA256Hash> for ConsensusValueHash
impl From<SHA256Hash> for ConsensusValueHash
Source§fn from(_inner: SHA256Hash) -> ConsensusValueHash
fn from(_inner: SHA256Hash) -> ConsensusValueHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for NetworkHash
impl From<SHA256Hash> for NetworkHash
Source§fn from(_inner: SHA256Hash) -> NetworkHash
fn from(_inner: SHA256Hash) -> NetworkHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for ConfigHash
impl From<SHA256Hash> for ConfigHash
Source§fn from(_inner: SHA256Hash) -> ConfigHash
fn from(_inner: SHA256Hash) -> ConfigHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for StorageShortHash
impl From<SHA256Hash> for StorageShortHash
Source§fn from(_inner: SHA256Hash) -> StorageShortHash
fn from(_inner: SHA256Hash) -> StorageShortHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for TxsHash
impl From<SHA256Hash> for TxsHash
Source§fn from(_inner: SHA256Hash) -> TxsHash
fn from(_inner: SHA256Hash) -> TxsHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for EventsHash
impl From<SHA256Hash> for EventsHash
Source§fn from(_inner: SHA256Hash) -> EventsHash
fn from(_inner: SHA256Hash) -> EventsHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for ProposalHeaderHash
impl From<SHA256Hash> for ProposalHeaderHash
Source§fn from(_inner: SHA256Hash) -> ProposalHeaderHash
fn from(_inner: SHA256Hash) -> ProposalHeaderHash
Converts to this type from the input type.
Source§impl From<SHA256Hash> for StorageKeyContractData
impl From<SHA256Hash> for StorageKeyContractData
Source§fn from(hash: SHA256Hash) -> StorageKeyContractData
fn from(hash: SHA256Hash) -> StorageKeyContractData
Converts to this type from the input type.
Source§impl From<SHA256Hash> for ContractAddress
impl From<SHA256Hash> for ContractAddress
Source§fn from(hash: SHA256Hash) -> ContractAddress
fn from(hash: SHA256Hash) -> ContractAddress
Converts to this type from the input type.
Source§impl Hash for SHA256Hash
impl Hash for SHA256Hash
Source§impl IntoTopic for SHA256Hash
impl IntoTopic for SHA256Hash
fn into_topic(&self) -> TopicSrc<'_>
Source§impl JsonSchema for SHA256Hash
Available on crate feature schema only.
impl JsonSchema for SHA256Hash
Available on crate feature
schema only.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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Mintable for SHA256Hash
impl Mintable for SHA256Hash
fn mint_into_parent(preimage: SHA256Hash, _children: &mut ChildNodeBuf) -> Self
Source§impl MintableType for SHA256Hash
impl MintableType for SHA256Hash
type Preimage = SHA256Hash
Source§impl Ord for SHA256Hash
impl Ord for SHA256Hash
Source§fn cmp(&self, other: &SHA256Hash) -> Ordering
fn cmp(&self, other: &SHA256Hash) -> 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 SHA256Hash
impl PartialEq for SHA256Hash
Source§impl PartialOrd for SHA256Hash
impl PartialOrd for SHA256Hash
Source§impl<'_r> ReadXDR<'_r> for SHA256Hash
impl<'_r> ReadXDR<'_r> for SHA256Hash
Source§fn read_xdr<R>(r: &mut R) -> Result<SHA256Hash, ReadError>where
R: Reader<'_r>,
fn read_xdr<R>(r: &mut R) -> Result<SHA256Hash, ReadError>where
R: Reader<'_r>,
Reads an XDR value from the reader. Read more
Source§fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, SHA256Hash>,
) -> Result<Init<'__xdrs_s, SHA256Hash>, ReadError>where
R: Reader<'_r>,
fn read_xdr_in_place<R, '__xdrs_s>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, SHA256Hash>,
) -> Result<Init<'__xdrs_s, SHA256Hash>, ReadError>where
R: Reader<'_r>,
Reads an XDR value directly into
slot, without first building it
on the stack. Read moreSource§impl<'r, 'a> ReadXDR<'r> for &'a SHA256Hashwhere
'r: 'a,
Available on crate feature xdrs only.
impl<'r, 'a> ReadXDR<'r> for &'a SHA256Hashwhere
'r: 'a,
Available on crate feature
xdrs only.Source§impl ReceiveAuthHandles for SHA256Hash
impl ReceiveAuthHandles for SHA256Hash
fn receive_auth_handles( &mut self, _handles: &mut impl Iterator<Item = u32>, ) -> Result<(), AuthTokenError>
impl StructuralPartialEq for SHA256Hash
Source§impl WriteXDR for SHA256Hash
impl WriteXDR for SHA256Hash
Source§fn write_xdr<F, W>(&self, w: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
fn write_xdr<F, W>(&self, w: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W>(&self, w: &mut W)where
W: WriterUnchecked<F>,
unsafe fn write_xdr_unchecked<F, W>(&self, w: &mut W)where
W: WriterUnchecked<F>,
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for SHA256Hash
impl RefUnwindSafe for SHA256Hash
impl Send for SHA256Hash
impl Sync for SHA256Hash
impl Unpin for SHA256Hash
impl UnsafeUnpin 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