[−][src]Struct cashweb_bitcoin::prelude::Script
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>
[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]
fn encoded_len(&self) -> usize
[src]
fn encode_raw<B: BufMut>(&self, buf: &mut B)
[src]
fn encode<B: BufMut>(&self, buf: &mut B) -> Result<(), InsufficientCapacity>
[src]
impl Eq for Script
[src]
impl From<Vec<u8>> for Script
[src]
impl Into<Vec<u8>> 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
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
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>,