Struct cashweb::bitcoin::transaction::Script [−][src]
Represents a script.
Implementations
impl Script
[src]
pub fn is_empty(&self) -> bool
[src]
Check whether the script is empty.
pub fn len(&self) -> usize
[src]
Length of the script.
pub fn len_varint(&self) -> VarInt
[src]
Length of the script as VarInt
.
pub fn into_bytes(self) -> Vec<u8, Global>
[src]
Convert the script into the underlying bytes.
pub fn as_bytes(&self) -> &[u8]ⓘ
[src]
Converts the script into a byte slice.
pub fn is_op_return(&self) -> bool
[src]
Checks whether the script fits the OP_RETURN pattern.
pub fn is_p2pkh(&self) -> bool
[src]
Checks whether the scripts the P2PKH pattern.
Trait Implementations
impl Clone for Script
[src]
impl Debug for Script
[src]
impl Default for Script
[src]
impl Encodable for Script
[src]
pub fn encoded_len(&self) -> usize
[src]
pub fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
pub fn encode<B>(&self, buf: &mut B) -> Result<(), InsufficientCapacity> where
B: BufMut,
[src]
B: BufMut,
impl Eq for Script
[src]
impl From<Vec<u8, Global>> for Script
[src]
impl Into<Vec<u8, Global>> for Script
[src]
impl PartialEq<Script> for Script
[src]
impl StructuralEq for Script
[src]
impl StructuralPartialEq for Script
[src]
Auto Trait Implementations
impl RefUnwindSafe for Script
[src]
impl Send for Script
[src]
impl Sync for Script
[src]
impl Unpin for Script
[src]
impl UnwindSafe for Script
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,