pub struct SignatureHint(pub [u8; 4]);Expand description
Last 4 bytes of a public key.
Tuple Fields§
§0: [u8; 4]Implementations§
Source§impl SignatureHint
impl SignatureHint
Sourcepub fn from_public_key(pk: &PublicKey) -> SignatureHint
pub fn from_public_key(pk: &PublicKey) -> SignatureHint
Create a SignatureHint with the last 4 bytes of the public key pk.
Trait Implementations§
Source§impl Clone for SignatureHint
impl Clone for SignatureHint
Source§fn clone(&self) -> SignatureHint
fn clone(&self) -> SignatureHint
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 Debug for SignatureHint
impl Debug for SignatureHint
impl Eq for SignatureHint
Source§impl PartialEq for SignatureHint
impl PartialEq for SignatureHint
Source§fn eq(&self, other: &SignatureHint) -> bool
fn eq(&self, other: &SignatureHint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignatureHint
Auto Trait Implementations§
impl Freeze for SignatureHint
impl RefUnwindSafe for SignatureHint
impl Send for SignatureHint
impl Sync for SignatureHint
impl Unpin for SignatureHint
impl UnsafeUnpin for SignatureHint
impl UnwindSafe for SignatureHint
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