Struct lightning::ln::PaymentHash
source · pub struct PaymentHash(pub [u8; 32]);Expand description
payment_hash type, use to cross-lock hop
This is not exported to bindings users as we just use [u8; 32] directly
Tuple Fields§
§0: [u8; 32]Trait Implementations§
source§impl Clone for PaymentHash
impl Clone for PaymentHash
source§fn clone(&self) -> PaymentHash
fn clone(&self) -> PaymentHash
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 PaymentHash
impl Debug for PaymentHash
source§impl Display for PaymentHash
impl Display for PaymentHash
source§impl Hash for PaymentHash
impl Hash for PaymentHash
source§impl Ord for PaymentHash
impl Ord for PaymentHash
source§fn cmp(&self, other: &PaymentHash) -> Ordering
fn cmp(&self, other: &PaymentHash) -> 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 PaymentHash
impl PartialEq for PaymentHash
source§fn eq(&self, other: &PaymentHash) -> bool
fn eq(&self, other: &PaymentHash) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PaymentHash
impl PartialOrd for PaymentHash
source§fn partial_cmp(&self, other: &PaymentHash) -> Option<Ordering>
fn partial_cmp(&self, other: &PaymentHash) -> Option<Ordering>
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 Readable for PaymentHash
impl Readable for PaymentHash
source§impl Writeable for PaymentHash
impl Writeable for PaymentHash
impl Copy for PaymentHash
impl Eq for PaymentHash
impl StructuralEq for PaymentHash
impl StructuralPartialEq for PaymentHash
Auto Trait Implementations§
impl RefUnwindSafe for PaymentHash
impl Send for PaymentHash
impl Sync for PaymentHash
impl Unpin 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