pub struct PaymentHash(/* private fields */);Implementations§
Source§impl PaymentHash
impl PaymentHash
pub const TOTAL_SIZE: usize = 32
pub const ITEM_SIZE: usize = 1
pub const ITEM_COUNT: usize = 32
pub fn nth0(&self) -> Byte
pub fn nth1(&self) -> Byte
pub fn nth2(&self) -> Byte
pub fn nth3(&self) -> Byte
pub fn nth4(&self) -> Byte
pub fn nth5(&self) -> Byte
pub fn nth6(&self) -> Byte
pub fn nth7(&self) -> Byte
pub fn nth8(&self) -> Byte
pub fn nth9(&self) -> Byte
pub fn nth10(&self) -> Byte
pub fn nth11(&self) -> Byte
pub fn nth12(&self) -> Byte
pub fn nth13(&self) -> Byte
pub fn nth14(&self) -> Byte
pub fn nth15(&self) -> Byte
pub fn nth16(&self) -> Byte
pub fn nth17(&self) -> Byte
pub fn nth18(&self) -> Byte
pub fn nth19(&self) -> Byte
pub fn nth20(&self) -> Byte
pub fn nth21(&self) -> Byte
pub fn nth22(&self) -> Byte
pub fn nth23(&self) -> Byte
pub fn nth24(&self) -> Byte
pub fn nth25(&self) -> Byte
pub fn nth26(&self) -> Byte
pub fn nth27(&self) -> Byte
pub fn nth28(&self) -> Byte
pub fn nth29(&self) -> Byte
pub fn nth30(&self) -> Byte
pub fn nth31(&self) -> Byte
pub fn raw_data(&self) -> Bytes
pub fn as_reader<'r>(&'r self) -> PaymentHashReader<'r>
Trait Implementations§
Source§impl Clone for PaymentHash
impl Clone for PaymentHash
Source§fn clone(&self) -> PaymentHash
fn clone(&self) -> PaymentHash
Returns a duplicate 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 PaymentHash
impl Debug for PaymentHash
Source§impl Default for PaymentHash
impl Default for PaymentHash
Source§impl Display for PaymentHash
impl Display for PaymentHash
Source§impl Entity for PaymentHash
impl Entity for PaymentHash
const NAME: &'static str = "PaymentHash"
type Builder = PaymentHashBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<PaymentHash> for [Byte; 32]
impl From<PaymentHash> for [Byte; 32]
Source§fn from(value: PaymentHash) -> Self
fn from(value: PaymentHash) -> Self
Converts to this type from the input type.
Source§impl From<PaymentHash> for [u8; 32]
impl From<PaymentHash> for [u8; 32]
Source§fn from(value: PaymentHash) -> Self
fn from(value: PaymentHash) -> Self
Converts to this type from the input type.
Source§impl LowerHex for PaymentHash
impl LowerHex for PaymentHash
Source§impl TryFrom<&[Byte]> for PaymentHash
impl TryFrom<&[Byte]> for PaymentHash
Source§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
Source§impl TryFrom<&[u8]> for PaymentHash
impl TryFrom<&[u8]> for PaymentHash
Source§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !Freeze for PaymentHash
impl RefUnwindSafe for PaymentHash
impl Send for PaymentHash
impl Sync for PaymentHash
impl Unpin for PaymentHash
impl UnsafeUnpin for PaymentHash
impl UnwindSafe for PaymentHash
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