pub struct ScriptPubkey(/* private fields */);Expand description
Strongly-typed Bitcoin script pubkey with length validation.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for ScriptPubkey
impl BorshDeserialize for ScriptPubkey
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, IoError>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ScriptPubkey
impl BorshSerialize for ScriptPubkey
Source§impl Clone for ScriptPubkey
impl Clone for ScriptPubkey
Source§fn clone(&self) -> ScriptPubkey
fn clone(&self) -> ScriptPubkey
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 ScriptPubkey
impl Debug for ScriptPubkey
Source§impl Default for ScriptPubkey
impl Default for ScriptPubkey
Source§impl<'de> Deserialize<'de> for ScriptPubkey
impl<'de> Deserialize<'de> for ScriptPubkey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScriptPubkey
Source§impl From<ScriptPubkey> for ScriptBuf
impl From<ScriptPubkey> for ScriptBuf
Source§fn from(value: ScriptPubkey) -> Self
fn from(value: ScriptPubkey) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptPubkey
impl PartialEq for ScriptPubkey
Source§fn eq(&self, other: &ScriptPubkey) -> bool
fn eq(&self, other: &ScriptPubkey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptPubkey
impl Serialize for ScriptPubkey
impl StructuralPartialEq for ScriptPubkey
Source§impl TryFrom<ScriptBuf> for ScriptPubkey
impl TryFrom<ScriptBuf> for ScriptPubkey
Auto Trait Implementations§
impl Freeze for ScriptPubkey
impl RefUnwindSafe for ScriptPubkey
impl Send for ScriptPubkey
impl Sync for ScriptPubkey
impl Unpin for ScriptPubkey
impl UnsafeUnpin for ScriptPubkey
impl UnwindSafe for ScriptPubkey
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