Struct bp::LeafScript 
source · pub struct LeafScript {
    pub version: LeafVer,
    pub script: ScriptBytes,
}Fields§
§version: LeafVer§script: ScriptBytesImplementations§
source§impl LeafScript
 
impl LeafScript
pub fn from_tap_script(tap_script: TapScript) -> LeafScript
pub fn tap_leaf_hash(&self) -> TapLeafHash
Trait Implementations§
source§impl Clone for LeafScript
 
impl Clone for LeafScript
source§fn clone(&self) -> LeafScript
 
fn clone(&self) -> LeafScript
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 LeafScript
 
impl Debug for LeafScript
source§impl Default for LeafScript
 
impl Default for LeafScript
source§fn default() -> LeafScript
 
fn default() -> LeafScript
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LeafScript
 
impl<'de> Deserialize<'de> for LeafScript
source§fn deserialize<__D>(
    __deserializer: __D
) -> Result<LeafScript, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D
) -> Result<LeafScript, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LeafScript
 
impl Display for LeafScript
source§impl From<LeafScript> for TapretNodePartner
 
impl From<LeafScript> for TapretNodePartner
source§fn from(v: LeafScript) -> TapretNodePartner
 
fn from(v: LeafScript) -> TapretNodePartner
Converts to this type from the input type.
source§impl From<TapScript> for LeafScript
 
impl From<TapScript> for LeafScript
source§fn from(tap_script: TapScript) -> LeafScript
 
fn from(tap_script: TapScript) -> LeafScript
Converts to this type from the input type.
source§impl Hash for LeafScript
 
impl Hash for LeafScript
source§impl Ord for LeafScript
 
impl Ord for LeafScript
source§fn cmp(&self, other: &LeafScript) -> Ordering
 
fn cmp(&self, other: &LeafScript) -> 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<LeafScript> for LeafScript
 
impl PartialEq<LeafScript> for LeafScript
source§fn eq(&self, other: &LeafScript) -> bool
 
fn eq(&self, other: &LeafScript) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<LeafScript> for LeafScript
 
impl PartialOrd<LeafScript> for LeafScript
source§fn partial_cmp(&self, other: &LeafScript) -> Option<Ordering>
 
fn partial_cmp(&self, other: &LeafScript) -> 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 Serialize for LeafScript
 
impl Serialize for LeafScript
source§fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl StrictDecode for LeafScript
 
impl StrictDecode for LeafScript
fn strict_decode(reader: &mut impl TypedRead) -> Result<LeafScript, DecodeError>
source§impl StrictEncode for LeafScript
 
impl StrictEncode for LeafScript
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
    W: TypedWrite,
source§impl StrictStruct for LeafScript
 
impl StrictStruct for LeafScript
const ALL_FIELDS: &'static [&'static str] = &["version", "script"]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for LeafScript
 
impl StrictType for LeafScript
const STRICT_LIB_NAME: &'static str = LIB_NAME_BP
fn strict_name() -> Option<TypeName>
impl Eq for LeafScript
impl StrictProduct for LeafScript
impl StructuralEq for LeafScript
impl StructuralPartialEq for LeafScript
Auto Trait Implementations§
impl RefUnwindSafe for LeafScript
impl Send for LeafScript
impl Sync for LeafScript
impl Unpin for LeafScript
impl UnwindSafe for LeafScript
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.